BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
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
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", true, true, "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
Same Error here,
Export To Excel Event even not triggering.