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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 grabbing wrong subreport!?!

Status
Not open for further replies.

mjbp

Programmer
Dec 14, 2000
8
US
I'm using the Crystal Reports design viewer inside a VBApp.
A very strange thing thing is happening, older versions of the subreports are being displayed. When I run the report from within Crystal Reports, the most recent subreports are used. If I then import that same .rpt into a new VBApp, I get older versions of the subreports which I no longer wish to use. I can't figure out a way around this, and it seems rather strange!

Any suggestions?

Thanks,
Brian Podolny
 
mjbp: You don't mention what version of CR you are using but you will need to ensure that you have re-imported and re-saved the latest version - I suggest you rename it as well as Crystal has a nasty habit of keeping the same name for an embedded subreport even if you change the file used to originate it! David C. Monks
david.monks@chase-international.com
Accredited Seagate Enterprise Partner
 
Thanks for your prompt response. I'm using version 8, although some of the subreports were originally created with version 7. Is there no other work around than reimporting the subreports? I have a large number of subreports on my main report( about 20 ), each of which has a corresponding hidden subreport in order to suppress empty subreports. Reimporting each subreport and "hider" subreport and reinserting all of the formulas to hide blank subreports is going to cost a lot of time!

Thank you,
Brian Podolny
 
Brain: No way round it that I know of! Others may be able to contribute here but this is an issue I have raised with Seagate David C. Monks
david.monks@chase-international.com
Accredited Seagate Enterprise Partner
 
hi

When you changed the subreports, did you change them as they were in the main report ( right click | Edit Subreport)? Or did you change them outside the main report.

When you insert a subreport, it is embedded an an object, a snap shot of the report, if you will, and if you change it outside the main report, it will not be updated.

E. McEvoy
Crystal Reports Consultant
 
Yes, the subreports were definately edited by way of "edit subreport..." not by editing the originals. It seems we don't have this problem if we edit from within the VBdesigner rather than from within the Crystal Reports Design App.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top