Vb.Net / Crystal Reports - Generate multiple files from 1 run
-
Hi, I do not know if this is the correct place to put this question but maybe someone has come acroos this problem. So sorry in advance. Is there a way to generate multiple files from 1 run i.e. via vb.net create a pdf file but the pdf has more than 1 page. I want to create a new file for every page e.g. Page1.PDF, Page2.PDF etc.
-
Hi, I do not know if this is the correct place to put this question but maybe someone has come acroos this problem. So sorry in advance. Is there a way to generate multiple files from 1 run i.e. via vb.net create a pdf file but the pdf has more than 1 page. I want to create a new file for every page e.g. Page1.PDF, Page2.PDF etc.
directred wrote:
Is there a way to generate multiple files from 1 run i.e. via vb.net create a pdf file but the pdf has more than 1 page.
What do you consider a "run"? Yes, you can generate multiple documents with multiple pages from a single method. If it's lots of pages than it might take a while. What library are you going to use to write the PDF-files? --Crystal Reports of course, that's what the question was about, and that also explains why you're worrying about the limits :) This[^] thread seems to suggest that CR only generates a single PDF from a single report. You could try that in a loop, but that might become a bit slow. A colleague suggested that it might be handier to generate a large report and to split that into multiple PDF's. There's a number of tools that could help there, like this[^] one.
I are Troll :suss:
-
Hi, I do not know if this is the correct place to put this question but maybe someone has come acroos this problem. So sorry in advance. Is there a way to generate multiple files from 1 run i.e. via vb.net create a pdf file but the pdf has more than 1 page. I want to create a new file for every page e.g. Page1.PDF, Page2.PDF etc.
Hmm ... Interesting problem. How about using the ReportDocument.PrintToPrinter option where you could pass the starting and ending page number ? If you need to create PDFs, you could find one of those PDF print drivers and install it on your computer and print to that print driver. I've used http://www.pdf995.com/[^] in the past and it enables any program to generate PDFs. My 2 cents. :)