borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Help with Datareport Invalid Data Source)Next Topic (Crystal 9.2 and Stored Procedures problem) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Design crystal report at runtime
Poster Message
jamkuwong
Level: Trainee

Registered: 07-02-2006
Posts: 1

icon Design crystal report at runtime

Hi, I'm new to VB & Crystal Report. Is it possible for me to design report at VB runtime. For example, move a field from left to right or add a text during VB runtime so that user do not have to open the CR Report to modify the report and then save it I heard from other people that Report Designer Component is able to do that but I'm not sure how to do that.

Thanks a lot.  

07-02-2006 at 08:19 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Design crystal report at runtime

Every object in report in a part of Section, so you can acces it in ReportsObjects collection of each section. EXample:

rpt.Sections(1).ReportObjects"text1").SetText "some text"


For moving the object use its Left and Top properties....

Text1 is the name of the objext you wish to change. This name can be found in the format editor of the object. When you are in design mode, right click on a textbox object, select Format_text, go to common tab, and look at object name.

____________________________
If you find the answer helpful, please mark this topic as solved.

07-02-2006 at 11:52 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Design crystal report at runtime
Previous Topic (Help with Datareport Invalid Data Source)Next Topic (Crystal 9.2 and Stored Procedures problem) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder