Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Can any one let me know how to export a html content to pdf format , as we do it for excel or csv format. I don want use any of the other software or a third party tool to do.


Thanks

Shiv
Posted
Comments
Sandeep Mewara 26-Feb-11 1:08am    
Just search... this has been asked number of times here itself.
shivtk 26-Feb-11 2:51am    
Thank's for the reply.In my post i had mentioned i don wna to use any third party tool. I meant i don want to use any ready dll where i just need to pass the path of the file and it creates a pdf file. hope u could catch my point

Thanks
Shiv
Sandeep Mewara 26-Feb-11 2:53am    
Then you should go through the iTextSharp thing I suggested. It's an OPEN SOURCE. You can go ahead and play around with the code.

1 solution

Well, have a look here:
Pdfizer, a dumb HTML to PDF converter, in C#[^]
Programmatically Convert Documents to PDFs the Easy Way[^]

Then there is iTextsharp:
CP result on iTextsharp articles[^], few of them:
Creating PDF Tables using C# (.NET 2.0) and iTextSharp[^]
Tutorials on creating PDF files using C# 2.0[^]

UPDATE:
I don want use any of the other software or a third party tool to do.
If you don't want to use any third party then you won't be able to do it. .NET does not have any control or class to do the same for you.
 
Share this answer
 
v2
Comments
Ankur\m/ 26-Feb-11 2:29am    
He doesn't want to use an existing library.
Yes, I am surprised to see that he has no idea about the project and doesn't want to use a library. :omg:
He has not even shown that he did some research on the topic.
Sandeep Mewara 26-Feb-11 2:32am    
He doesn't want to use an existing library
Oh! I missed answer to that line. If he doesn't want to then he won't be able to. Let me update. THanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900