Hi,
I have 20 columns in UltraWinGrid and I want to export to PDF with WinGrid, It works fine. I want to export data on two PDF pages one contains maximum columns it can take and another contains rest of the columns of WinGrid say if a page can take 12 Columns then it should take 12 Columns only and rest to the another column.
I am not sure how to calculate the number of columns (based on its width) that fit into the page. More over, how to deal if I have lot of columns and rows, say 30 columns and 300 rows.
Please let me know some code snippet or any help to point this. Thank you
I don't see how. You could export the entire grid to a PDF report and hide some of the columns. Then hide the columns you exported and export the grid again to the same report. But that probably won't give you what you want, since the second half of page 1 would be after all of the first halves of all other pages.
So that means you would have to export the grid one page at a time, and there's no way to tell how many rows will fit on a page.
Mike,
is it not possible to export some columns and then export rest columns using some alternate way?
The PDF format doesn't really support crossing multiple pages horizontally. So the UltraGridDocumentExporter always increases the size of the page so that the entire grid will fit. The PDF reader will then scale the document to fit a single page when printing.
So there's no good way to do what you are asking here.