We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

excelExport,wordExport,pdfExport

Hi

excelExport,wordExport,pdfExport  - not working  and it's possible  pdfExport  print with Title,Logo(Image)  and date  in header 

please find the attachment 

Thanks 


Attachment: DialogEditing_97daf943.rar

5 Replies

IR Isuriya Rajan Syncfusion Team September 25, 2015 11:50 AM UTC

Hi Pratheep, 


Thanks for contacting Syncfusion support.


Query #1: excelExport, wordExport,pdfExport  - not working.


We are unable to reproduce the issue at our end. Please share the following details to find the cause of the issue,  


1.    Is the issue is occurred before exporting the Grid content and at the time of exporting?

2.    Provide the Grid exporting code example of your project.

Query #2: and it's possible pdfExport print with Title,Logo(Image) 

We can achieve this requirement by adding an image using DrawImage method in pdf document and pass that document to an exporting method. The values given in the Draw image may vary depending upon the size of the image. 


protected void Grid_ServerPdfExporting(object sendr, Syncfusion.JavaScript.Web.GridEventArgs e)

        {

            PdfExport exp = new PdfExport();

            PdfDocument doc = new PdfDocument();

            RectangleF rect = new RectangleF(0, 0, 10, 50);

            PdfPageTemplateElement header = new PdfPageTemplateElement(rect);

            PdfImage img = new PdfBitmap("D:/Trunk/JS/themes/css/web/common-images/maps/Home_hover_saffron.png");

   //need to give image url path form your drive location

            header.Graphics.DrawImage(img, new PointF(0, 0), new SizeF(5, 30));

            doc.Template.Top = header;

            exp.Export(Grid.Model, (IEnumerable)order, "Export.pdf", true, true, "flat-lime", true,false, doc,, "PDFEXport");//header
        }


We have created a sample using logo with headertext for exporting and attached for your reference, 

Sample:Sample
Regards,
Isuriya R



PR Pratheep September 25, 2015 12:15 PM UTC

Hi   Isuriya 

Query #1: excelExport, wordExport,pdfExport  - not working.

after bind data in grid click  Export button - button event not fire( excel,word,pdf buttons) 


Query #2: and it's possible pdfExport print with Title,Logo(Image) 

attached - example project unable to download 

Thanks
Pratheep


IR Isuriya Rajan Syncfusion Team September 28, 2015 10:21 AM UTC

Hi Pratheep,


Query 1: excelExport, word Export, pdfExport - not working.


We are unable to reproduce the issue from our side. Please revert by modifying the sample based on your application along with the replication procedure that would be helpful to serve better.


Share the following details to find the cause of the issue, 


1.  Provide the exporting code example of your Grid. 

2.  Version of DLLs that are used in your project.

3.  Is Exporting button is not triggered after any Grid operations like filtering, sorting? 


Query 2: and it's possible pdfExport print with Title, Logo (Image) 


protected void Grid_ServerPdfExporting(object sendr, Syncfusion.JavaScript.Web.GridEventArgs e)

        {

            PdfExport exp = new PdfExport();

            PdfDocument doc = new PdfDocument();

            RectangleF rect = new RectangleF(0, 0, 10, 50);

            PdfPageTemplateElement header = new PdfPageTemplateElement(rect);

            PdfImage img = new PdfBitmap("D:/Trunk/JS/themes/css/web/common-images/maps/Home_hover_saffron.png");

   //need to give image url path form your drive location

            header.Graphics.DrawImage(img, new PointF(0, 0), new SizeF(5, 30));

            doc.Template.Top = header;

            exp.Export(Grid.Model, (IEnumerable)order, "Export.pdf"truetrue"flat-lime"true,false, doc,, "PDFEXport");//header
        }


We have created a sample using logo for exporting and attached for your reference, 

Sample: Sample
Regards,
Isuriya R



RK Ravindra Kumar Gautam August 23, 2017 12:13 PM UTC

Same Error here,

Export To Excel Event even not triggering.



AS Alan Sangeeth S Syncfusion Team August 24, 2017 12:16 PM UTC

Hi Ravindra, 

This issue would occur in following two cases 
1.       Script manager in not added in the page 
2.       ej.webform.min.js script file would not have been referred 

Please ensure the above cases. 

Also, please go through our Getting Started documentation for further reference. 

Regards, 
Alan Sangeeth S 


Loader.
Live Chat Icon For mobile
Up arrow icon