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

Dynamic subreports and runtime PDF exporting w/o RDC

Status
Not open for further replies.

rchandr3

Programmer
Jun 16, 2003
244
US
I have some 10 reports which are of half page each. I want to print 2 reports per page. I thought of using subreports, but I think itas a cumbersome process and thinking some alternatives...Can any one suggest idea?

I am using Crystal Reports crpt32 ocx with vb8.5. Also can I programmatically export the report to PDF form? I know about exporting to excel, word and I dont want to use RDC.
Can any one help me out?

Thanks and Thanks

Ravi
 
What are your reasons for not using the RDC. It is the recommended integration method. Also, the OCX has been deprecated in Crystal 9, so you should be looking at other integration methods.

Craig Berntson
MCSD, Visual FoxPro MVP, Author, CrysDev: A Developer's Guide to Integrating Crystal Reports"
 
I dont want to use RDC because I have not worked with that! I know OCX lot better than RDC and so am sticking to that!
 
rchandr3,

No reason to go on the offensive. I was just wondering if there were reasons such as client requirements that were forcing you to stick with the OCX. You posted the same question in another forum and basically got the same answer I gave you here.



Craig Berntson
MCSD, Visual FoxPro MVP, Author, CrysDev: A Developer's Guide to Integrating Crystal Reports"
 
rc,

do not be afraid, er... maybe be afraid. By restricting yourself to the OCX you are setting yoursefl for a potential heap 'o trouble. The OCX has not been updated now since version 6 of CR and it relies solely on the print engine (which has also been deprecated) to render reports.

The RDC provides you about 1000+ properties and methods where the OCX is around 120 or so (can't remember). The RDC is also based of the OCX to a certain degree.

Also the OCX has no way of exporting to PDF in code. Only through the viewer.

As for your printing issue, since you have 10 reports each of 1/2 page and you want to print 2 reports per page, the only way I can see this being done is by using 1 report as the main and adding the other 9 as subreports then designing the report to fit 2 reports per page.

There might be some other ideas coming along.

If you ever get in the mood, here is a link to a paper you find handy






Cheers,

SurfingGecko
Home of Crystal Ease
 
Thanks Surfinggecko and others...

Now the requirement for exporting is not there so better no RDS for now... Definitely I shall learn it for we need to be updated or we will be deleted with new ppl getting selected and inserted....

Still I have this BIG problem standing before me and my deadine:

as I told, I need dynamic display of subreports, two subreports per page and the two can be the same subreport or need not be.

I have pasted the same set of subreports at the top and at the bottom to achieve this. Problem is I cannot suppress one of the two if I want to. If I pass the suppress formula, both of them get displayed or not.

I dont know whether I am clear or not!

Simple words: how can I display selected subreports out of the lot dynamically from vb code? I was thinking that getsubreporttochange will make only the called subreport to display and all others wont be but that is not the case

Please help me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top