Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
WebDataGrid Document Exporter PDF many columns
posted

Hi,

I have a WebDatagrid with about 20 columns. I need to export data to PDF format, so I used the
WebDocumentExporter. This is my code:

Dim fileName As String = HttpUtility.UrlEncode("PDF")
fileName = fileName.Replace("+""%20")
wdgPDFExporter.DownloadName = fileName
 
With wdgPDFExporter
   .EnableStylesExport = True 
   .DataExportMode = DataExportMode.DataInGridOnly
   .TargetPaperOrientation = Infragistics.Documents.Report.PageOrientation.Landscape
   .Margins = PageMargins.GetPageMargins("Narrow")
   .TargetPaperSize = PageSizes.GetPageSize("A4")
   .Export(wdg)
End With

wdg is my WebDataGrid. Problems:

1) The page doesn´t show the Landscape format.

2) It does not show all the columns, only ones which fit on the page.

Somebody can help me?

 

 

Parents
  • 33839
    posted

    Hi ilg,

    Have you upgraded to the latest 10.3 Service Release?  I think that there has been a bug fix made regarding the orientation.  

    regards,
    David Young 

Reply
  • 305
    posted in reply to [Infragistics] David Young

    Hi AgentD5,

    I am using very latest version i.e   Version=13.2.20132.2077

    I have 100 columns in webdatagrid . I set Paper size  as "A4" but only 13 column shown in XPS viewer..

    I dont want to increase my paper size. If remaining columns come ine next page then ok for me..

    Please do the needful

    I have attached sample code also

    XPS.zip
Children
No Data