Hello
The grid result contains over 1000 rows of data. I'm able to create only 1 page in the report even though I'm processing all rows through the logic that produced the 1 page. I've looked at the SampleGallery of documents and didn't see an example of using a WinUltraGrid as the source for the data in a Document Report.Grid. What do you suggest that I look for to fix this?
Thank you
Clay Seifert
Morning Mike
Thank you for your help. Your mentioning of the UltraGridDocumentExporter in your initial reply pointed me in the right direction. I was able to accomplish my what I wanted to do.
Appreciate the job you do.
Hi Clay,
ClaySeifert said: I've tried to do this via the Document.Report and can only get the first page.
I'm not sure why that would be happening. It's most likely an error in the way you are exporting your grid into the report, but I'd need a sample project to know for sure.
ClaySeifert said: If I repace the code for the grid with a UltraGridDocumentExporter, would that accomplish what I'm trying to do?
Yes, you can do this. There's a sample included in NetAdvantage which demonstrates how to export the grid to a PDF or XPS document. And that sample also demonstrates how to add some content into the report before or after the grid. The sample is in the WinGrid Samples Explorer.
...\2010.1\Samples\WinGrid\CS\SamplesExplorer
Look at the sample called "7.2 Document Export" or the frmDocumentExport class in the code. In particular, you will want to take a look a the CreateReportWithExtras method.
Mike
I'm posting this message because I didn't receive and email that it was received.
Good Morning Mike
Thank you for the quick reply.
That I want to do is produce a Report Recap that has a summary page as page 1 that contains a listing of the parameters and the values that the user provided to generate the report along with other related info. I've been able to accomplish this via the Document Report (see attached). For the remainder of the report (page 2 on), I want the actual report. I've tried to do this via the Document.Report and can only get the first page. If I repace the code for the grid with a UltraGridDocumentExporter, would that accomplish what I'm trying to do?
Thanks
Clay
I'm having a difficult time understanding your questions.
If you are trying to export the UltraWinGrid to a PDF or XPS document, then you should just use the UltraGridDocumentExporter component.
Is that what you are doing? Or are you trying to write code to export the grid yourself?