Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Change Text Object at Runtime Post Reply Post New Topic
<< Prev Page  of 2
Author Message
MarkM
Newbie
Newbie
Avatar

Joined: 01 May 2007
Location: United States
Online Status: Offline
Posts: 5
Quote MarkM Replybullet Posted: 01 May 2007 at 11:02am
I was trying anything at that point, I have put the same code on the Load event, Initialize event, even in the RefreshRepot event ...nothing. 
 
Whoops...I just caught my mystake. I dimensioned a new instance of my report "Dim Report as New CustOrder" and then forgot to reference it when I cast it back to myTextObject.
 
(wrong) myTextObject = CType(CustOrder1.ReportDefinition...
 
(right) myTextObject = CType(Report.ReportDefinition...
 
I've only been looking at this code for a day and a half now....geeez

 

 


Edited by MarkM - 01 May 2007 at 11:03am
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 01 May 2007 at 11:31am
Glad you found it. I figured it would be something funky like that.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
shant1976
Newbie
Newbie


Joined: 06 Nov 2009
Online Status: Offline
Posts: 1
Quote shant1976 Replybullet Posted: 06 Nov 2009 at 7:44am
Here is the c# version:-

http://prabhat.me/2009/11/06/change-the-value-of-itextobject-of-crystal-report-at-runtime/
IP IP Logged
<< Prev Page  of 2
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.016 seconds.