Posted By: danzaharia | Jul 22nd @ 1:55 PM
page 1 of 1
Comments: 3 | Views: 498

Hi,

 For my current project I need to output some information in a ReportViewer which is reading an RDLC.  While the report looks correct in the viewer, and even looks correct in the generated Excel document, the PDF is giving me problems.  The report looks something along the lines of this

-------------------------------------------------------------------------

Column1Head      Column2Head      Column3Head      Column4Head

Column1                Column2               Column3               Column4

Column1                Column2               Column3               Column4

Column1                Column2               Column3               Column4

---------------------------------------------------------------------

In the PDF, however, it is doing the following

-----------------------------------------------------------------------

Column1Head      Column2Head      Column3Head

Column1                Column2               Column3

Column1                Column2               Column3

Column1                Column2               Column3

Column4Head

Column4

Column4

Column4

--------------------------------------------------------------------

In other words, rather than breaking each line to accomodate the page width, it is breaking the entire table.  I would prefer it to do neither of these.  Is there any way to instruct the ReportViewer on some different parameters for the PDF generation?  Perhaps a page width property differing from that of the actual reportviewer?

Hmmm.....   One thing might be to look at the page size settings you might want to just go to landscape layout.
by default the printed page is 8.5 x 11   and that is what makes the pdf page size.
try 11 x 8.5 size.

after that I know you can supply some custom code for output but I do not think it will be easy to re-do export to pdf.

also check margins, make them say .25 all around.

yes the viewer rendering beeing different from print and export is kinda a pain.

Thanks figurres, that worked.   It turns out that the properties that control the PDF rendering are the layout properties of "Report."

Yeah the "export to " logic uses the page size and margins of the report to determine page size and such.
page 1 of 1
Comments: 3 | Views: 498