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
90
How to export grid in pdf format
posted
I want to export the grid in pdf format and also want to add some information in header of the pdf file. I know this will be done usint the document exporter but how to do this please help me. below is my code but this is not working Report rpt = new Report(); ISection sec = rpt.AddSection(); DocumentExporter1.Export(ug1, sec); rpt.Publish("MyFile", FileFormat.PDF); This does nothing. i am upset please help me. Thank you all good guys! Advance.
Parents
No Data
Reply
  • 90
    posted
    Oh My God! I found this way to export the simple grid without any header in PDF format. DocumentExporter1.Format = FileFormat.PDF; DocumentExporter1.DownloadName = "asapTransaction.pdf"; DocumentExporter1.Export(ug1); But when i use this code in a page with master page this again generates error. When i run my project in debug mode This error opens a open file dialoge with title "Find Source: ExtenderControlBase". And on canceling this dialoge box i got the following error "There is no source code available for the current location." I dont know what is this. I just want to export my ultragrid in pdf format with some information in header like report title and the dates range for which i am displaying data in grid. Please someone help me, i am sure one must have faced this problem and solved this. I am working from last 5 hours and still not successfull.
Children
No Data