![]() |
InplaceButton Changing Item Values |
Post Reply ![]() |
Author | |
jcollier ![]() Senior Member ![]() Joined: 15 February 2006 Status: Offline Points: 250 |
![]() ![]() ![]() ![]() ![]() 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) |
|
![]() |
|
jcollier ![]() Senior Member ![]() Joined: 15 February 2006 Status: Offline Points: 250 |
![]() ![]() ![]() ![]() ![]() |
Anyone?
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I'm sure your second solution should work:
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 |
|
![]() |
|
jcollier ![]() Senior Member ![]() Joined: 15 February 2006 Status: Offline Points: 250 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |