TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nageshwar Rao
NA
74
37.8k
How to convert html to pdf
Sep 7 2016 1:39 AM
HI
I need some help in converting html to pdf,i have sample code
html=url(*****)
HtmlToPdfOptions pdfOptions = new HtmlToPdfOptions();
pdfOptions.AutoFitX = HtmlToPdfAutoFitMode.ScaleToFit;
pdfOptions.TriggerMode = HtmlToPdfTriggerMode.Auto;
HtmlToPdf.Options.PageSize = new System.Drawing.SizeF(8.5f, 11f);
HtmlToPdf.Options.StartPageIndex = 1;
HtmlToPdf.Options.StartPosition = 0;
pdfOptions.AutoAdjustForDPI = false;
pdfOptions.PageSize = PdfPageSizes.A4;
EO.Pdf.HtmlToPdf.Options.OutputArea = new System.Drawing.RectangleF(0.5f, 0.5f, 10f, 10f);
HtmlToPdfResult pdf = EO.Pdf.HtmlToPdf.ConvertUrl(Url, @"C:\Pictures\testing3.pdf", pdfOptions);
but it showing only one page remaining bottom pages are not getting.i want to show all contents in pdf
Reply
Answers (
5
)
Convert sqlserver query to lambda expression
display gridview on button click