Hi,
I’m exporting to PDF/EXCEL data stored in datatable.
In case of Excel report is generated without any problems, but in case of PDF output file has too width columns (look attachments).
Below is source code what I’m using to save both files (excel and PDF)
Dim sStram As System.IO.MemoryStream = New System.IO.MemoryStream()
If pFormat = SaveFormat.Pdf Then
Dim pdfSaveOptions As New PdfSaveOptions(SaveFormat.Pdf)
pdfSaveOptions.AllColumnsInOnePagePerSheet = True
report.Save(sStram, pdfSaveOptions)
Else
report.Save(sStram, pFormat)
End If
Please anybody can help me to make PDF file with correct column width?