Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple reports/different apps/1 CR viewer

Status
Not open for further replies.

jrtex

Programmer
Dec 7, 2000
11
US
In looking over documentation and other tips and notes on the subject of multiple reports in Crystal Viewer I have not found a good way to use 1 crystal viewer to hold different reports from different parts of our application. In the notes I have seen it talks of having to define multiple reports, use CRVIEWERLibCtl.ReportSourceRouter and then it all works. I have tried it but after I create the first report, leave the viewer open, click on another part of the application and run its report nothing happens. Stepping thru the VB code it just goes right thru the .Show portion without any trouble, but only the original report is still there. I have gotten 2 reports to show up in the first app, allowing me to use enablegrouptree to be able to click between them.

Anybody have any thoughts on this? Do I have to create multiple versions of the viewer object in VB so I will have multiple viewers? If there is a way to use one let me know.

Thanks. Jim
 
I make use of the 'Crystal Viewer' from Delphi.
I have one form with the 'CRViewer' in and have a form that calls this one after giving it the file of the path to pull the report from, parameters for the report, etc.
I am able to run one report previewing it in the 'CRViewer', close my preview form and then re-set up the preview form of mine to view the next report (different from the first).
Are you keeping the CRViewer on display while you try and open the second report ?
Steve
 
Steve,
Yes, I am trying keeping the original viewer open. What I was hoping to do was be able to just keep adding forms to the viewer itself, even if it ment refreshing it. Based on what it looks like using the reportsourcerouter you can add mulitple reports and then when the viewer comes up you can select which one with the tree view. I have not gotten it to work like I had hoped(YET!).
Jim


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top