Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - InplaceButton Changing Item Values
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

InplaceButton Changing Item Values

 Post Reply Post Reply
Author
Message
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Topic: InplaceButton Changing Item Values
    Posted: 25 January 2007 at 12:22pm
Ok, I'm missing something somewhere.  I'm using an InPlace button in a report control with Collapsed Groups.

I expand the group I want, click the inplace button which brings up a dialog to choose font name and size.  Then I want to update the item in 1 row to show the new font size and the item in another row to show the new font.

I've tried the following 2 ways but get Invalid Procedure Call on both.

I'm sure I'm just overlooking something simple

rpt.Records(ROW_STAMPPOINTSIZE).Item(COLUMN_VALUE).Value = CStr(CCommDiag.FontSize)
                rpt.Records(ROW_STAMPFONTNAME).Item(COLUMN_VALUE).Value = CStr(CCommDiag.FontName)
               
'                rpt.Rows(ROW_STAMPPOINTSIZE).Record.Item(COLUMN_VALUE).Value = CStr(CCommDiag.FontSize)
'                rpt.Rows(ROW_STAMPFONTNAME).Record.Item(COLUMN_VALUE).Value = CStr(CCommDiag.FontName)

Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Posted: 29 January 2007 at 12:02pm
Anyone?
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2007 at 5:24am
Hi,

I'm sure your second solution should work:

rpt.Rows(ROW_STAMPPOINTSIZE).Record.Item(COLUMN_VALUE).Value = CStr(CCommDiag.FontSize)
rpt.Rows(ROW_STAMPFONTNAME).Record.Item(COLUMN_VALUE).Value = CStr(CCommDiag.FontName)


You only have to check that Rows with numbers ROW_STAMPPOINTSIZE and ROW_STAMPFONTNAME are not Group rows; and to check that column  with number COLUMN_VALUE really exist.

--
WBR,
Serge
Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2007 at 1:19pm
That was actually my first thought also.   The report is being used in Treeview mode and some of the nodes above these rows can be collapsed and that seems to throw the row count off.  The only way I got it to work was to expand all of the tree nodes above these 2 rows.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2007 at 5:29pm
Yes, Rows count depends on whether some groups are collapsed or not. Looks like you should rely on Record children collection.
You know your row --> you can get your Record --> you can get children of this record --> you can access items of any child record.

--
WBR,
Serge
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.