Hi,
i am using infragistics webdatagrid. the grid have both scrollbars. when i export grid to pdf, it doesnot show all columns of grid. i used Landscape page orientation but couldn't succeed. please let me know how all columns of grid can be shown in pdf. can we show horizantal scorllbar in pdf.
Please help me out. thanks in advance.
Please provide me any answer. i am waiting for it . i have stuck in this problem. please help me. Thanks in advance.
Hello nitin jain,
Thank you for posting in our forum.
A possible workaround would be to set WebDocumentExporter1.EnableStylesExport = false; and apply appropriate styles on CellExporting event, as described in this thread - http://beta.infragistics.com/community/forums/t/57087.aspx.
If you have any further questions, please let me know.
Hi nitin jain,
I’m not sure I completely understand your requirement. If you want to export a large number of columns to pdf – you should set empty width for the columns and 100% width for the grid, as I mentioned above. However, if there are too many columns their content would not fit in the available space and it would not be readable, because the page is not wide enough to fit all contents. You could take some steps like formatting the grid (remove borders, set smaller font size etc.) but this would not make big difference if you want to export more than 100 columns.
If you have something different in mind please clarify.
Hi Nikolay,
you are understanding right. i have a large number of column to be exported in PDF. i want all column should be readable in exported PDF. i am attaching a sample web application which will help you to understand my problem. in this Application i am exporting a webdatagrid having large number of column.
Thanks & Regards
Nitin Jain
If you have any alternate solution Please Provide ASAP.
Please let me know if you want more clarification.
Regards
Hi Nitin,
You could export only the visible part of the grid and then the grid will appear the same in pdf as in the browser. As you can see in your example, all columns are exported correctly - the available width of the page is distributed equally to all columns and the text inside each cell is displayed in the available space. It's just that this space is too small to fit the text on a single row, so the text is wrapped on multiple rows. This is the default and expected behavior.
sir, i have 180 columns in asp grid view and i want to export the grid as a PDF but due to large number of columns it unable to export grid as a PDF ,so in this case i want 30 columns in one page and next 30 columns on second page and so on.
could you please suggest some solutions .
thanks