Print Page | Close Window

Edit a ReportRecordItem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=3647
Printed Date: 25 April 2024 at 8:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Edit a ReportRecordItem
Posted By: Shawshank
Subject: Edit a ReportRecordItem
Date Posted: 13 February 2006 at 2:05pm

I'd like to a a specific ReportRecordItem be editable by simply single clicking upon it. This appears possible from reading through the object library but I can't seem to get it to work. I have tried the following:

Dim Item As ReportRecordItem

Set Item = Record.AddItem(sNewFile$)

Item.Editable = True

Item.EditOptions.AllowEdit = True

I have also se the Report control's .EditOnClick property to True.

The latter attempt generates an error stating the "Object variable or With block variable not set". Checking the Item I see that it is indeed a valid object that has been initialized. In fact, Item.Editable does not produce the same error.

 

Is what I want to do possible? If so, what am I doing wrong?




Replies:
Posted By: sserge
Date Posted: 15 February 2006 at 3:24pm
Hi,

Before you access EditOptions you have to create it with CreateEditOptions method.

See Report Control / Test / Properties test dialog and the corresponding code.

--
WBR,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net