Attach dynamic Table as pdf and send via emal in asp.net - asp.net

i want to attach a dynamic table Generated through c# code, and attach it as a pdf document
and send it via email to customer in asp.net
please help
Thanks in Advance
Regards.
Zain

You can use:
iTextSharp:
iTextSharp is a C# port of iText, and open source Java library for PDF generation and manipulation. It can be used to create PDF documents from scratch, to convert XML to PDF (using the extra XFA Worker DLL), to fill out interactive PDF forms, to stamp new content on existing PDF documents, to split and merge existing PDF documents, and much more.
Also, Refer:
Create PDFs in ASP.NET - getting started with iTextSharp
Creating PDF Documents with ASP.NET and iTextSharp

Related

asp.net Web API retrieve file(s) without saving them

I want to retrieve file(s) with ASP.NET Web Api, XML file(s) or zip file(s).
There are many examples how to do this, like this:
http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2
But the problem is, I don't want to save them on HDD!
I just want to validate the XML with some functions and generate a report on the fly and want to return this report.
But every tutorial use the "MultipartFormDataStreamProvider" witch save the files on HDD.
How can I get the file(s) and file name(s) in memory?
Kind regards
I think you can use the MultipartMemoryStreamProvider?
See a way to implement file upload without writing to the file system.

Export to PDF to a local folder

I have a Asp.net C# windows application where i call a SSRS Report.I want a functionality called " Export to pdf" in my page,and the following pdf must save into a local folder.Is it possible through coding or some other way.
use WkHtml
or itextSharp for better performance in open source projects.
Yes, but if you are using SOAP to access the report server, you need to build it up yourself. If you are using the report viewer controls or URL access, this functionality should already exist.

How I can export a datatable to excel 2007 and pdf from asp.net?

I have to make reports with graphics in Excel and PDF from data in a database in an asp.net app.
I don't want to use com objects so I have been using Open Xml Sdk to build the excel file from a template file and redirect the response to the new file generated but I don't know how to make the PDF file...
I accept any comments about how I can generate the pdf file in my web app...
Thanks by the time invested reading this...
go to this site for pdf.
http://itextsharp.sourceforge.net/
I've done this before but with a bit of a cheat.
Office XP and onwards can actually read html files as office documents so if you sent a html document containing a table with the extension and mime type of an excel doc then windows would open it in excel.
From there you can use a web service such as http://www.htm2pdf.co.uk/htm2pdf-web-service.aspx to convert the html table data into a pdf.
Even better than that if you change the extension of a docx or xslx file to zip you can unzip the stored files and you'll find they are xml files that you can edit and rezip (changing the extension back of course).
The easiest solution -- in my opinion -- is to use Client Report Definition Files. After you defined reports, you can
show them to users in your ASP.NET application using the ReportViewer component (Google for asp.net ReportViewer),
export them directly to Excel (Google for localreport excel),
export them directly to PDF (Google for localreport pdf).
For the last two options, you can either save the file to disk or send it directly to the asp.net client (again, there are lots of code examples on the web).

Export into different file format

I want to Export in charts & datagrid data into different file formats - "PDF, Word and
Excel" in my web application..I am using Flex 3 and want to export the file in local system.
Any help will be highly appreciable...
Thanks in Advance...
If you are using Java/.NET/PHP or any back-end, you should be using PDF/word generation API to stream the file in required format.
For ex: You can use Apache POI or APache FOP apis to render MSword or PDF files and using Flex, users can download the files.
http://poi.apache.org/
xmlgraphics.apache.org/fop/
You can use AlivePDF to create PDF files in AS3.

How do I reference the PDF IFilter (dll) interface built into Windows to extract text and properties of a pdf document via Classic ASP

I want to extract text and properties (author, title, etc.) of PDF file.
I need to extract and parse Text from a pdf file in a classic ASP environment. I read another post about using the PDF iFilter driver installed with Adobe Acrobat 9 which can be referenced through COM.
Is this possible? If so, how do I get started?
If you know the COM class name or clsid, you should be able to use Server.CreateObject() to get an instance. You should then be able to call IFilter methods on it.

Resources