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
450
Print Preview / Export to PDF
posted

Is it possible to use the UltraPrintPreviewControl with an Excel spreadsheet?

I basically need to print a spreadsheet, and ultimately export it to PDF.

How could I accomplish that?

At the moment all I can achieve is opening an existing spreadsheet.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

     There's no real connection between PDF and Excel. And by that I mean there's nothing in the Documents assembly that knows anything about Excel. You could, of course, write your own code to create a PDF report based on the data in your Excel file, but this would be a manual process. 

        What might be easier is for you to take your Excel data and put it into a data source, like a DataTable, then bind it to a WinGrid and then export the grid to a PDF using the UltraGridDocumentExporter.  

Children