Ways to create a pdf file from c#?

Status
Not open for further replies.

stoymigo

Senior Member
Joined
Dec 11, 2008
Messages
975
Reaction score
26
Hi,
I've used reportviewer control, does the job, but I don't want to have to install the component if it's for multiple users.
Then there's word to pdf, done it in VB6 but say the client doesn't have word installed I'd rather avoid it.
If I use crystal reports, will I also need to do some extra installation (like reportviewer) on the client's pc to get it working.

What suggestions/alternatives do you have?
Thanks
 
Hi,
I've used reportviewer control, does the job, but I don't want to have to install the component if it's for multiple users.
Then there's word to pdf, done it in VB6 but say the client doesn't have word installed I'd rather avoid it.
If I use crystal reports, will I also need to do some extra installation (like reportviewer) on the client's pc to get it working.

What suggestions/alternatives do you have?
Thanks

How about IText? I use it with java and it is very good. And i know it is supported for C# as well.
 
How static is the PDF? Sorry, not familiar with this reportviewer of yours but years ago I wrote something that can generate template PDFs by creating a PS that had embedded media size and then bleed and slug. In the bleed and slug, I put all the extra alphabet characters. The media size had basic placeholder text and the program then replace the placeholder with the actual text. At that point, programatically created PDF from PS. Dunno if a similar solution might work in your instance.

It was years ago so remembering everything is impossible, but that's the gist of it.
 
How about IText? I use it with java and it is very good. And i know it is supported for C# as well.

Dumb me,
I actually used it once in cSharp just to convert text to pdf, worked a treat. I see it does images, it will do the job.Thx guys.
 
Hi,
I've used reportviewer control, does the job, but I don't want to have to install the component if it's for multiple users.
Then there's word to pdf, done it in VB6 but say the client doesn't have word installed I'd rather avoid it.
If I use crystal reports, will I also need to do some extra installation (like reportviewer) on the client's pc to get it working.

What suggestions/alternatives do you have?
Thanks

You should not have to install report viewer on the client's PC; it's included in the framework. Don't use crystal reports, use the standard .rdlc reports in VS. Then you can render the report dynamically into PDF as a byte[], save it to disk. Done this many times in Win Forms, WPF and ASP.NET.
 
Use iText, used it also recently to merge pdf files. Well documented and easy to use.
 
You should not have to install report viewer on the client's PC; it's included in the framework. Don't use crystal reports, use the standard .rdlc reports in VS. Then you can render the report dynamically into PDF as a byte[], save it to disk. Done this many times in Win Forms, WPF and ASP.NET.

What version of Visual Studio have you done this in?
 
You could also use wkhtmltopdf, I'm sure it's rather obvious what it does.
 
I've used iTextSharp before, its pretty good. No complaints.
 
itext in java works great, use it extensively, so I am sure itextsharp will do the job
 
I just use reportviewer and this is included in the framework?
 
I use iTextSharp it is the C# port of java's iText .
 
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X