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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

excelExport,wordExport,pdfExport

Thread ID:

Created:

Updated:

Platform:

Replies:

120555 Sep 25,2015 02:01 AM UTC Aug 24,2017 12:16 PM UTC ASP.NET Web Forms 5
loading
Tags: Grid
Pratheep
Asked On September 25, 2015 02:01 AM UTC

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

Isuriya Rajan [Syncfusion]
Replied On 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


Pratheep
Replied On 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

Isuriya Rajan [Syncfusion]
Replied On 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


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

Same Error here,

Export To Excel Event even not triggering.


Alan Sangeeth S [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;