Popular Articles
Recent comments
- Awsome!!
7 hours 46 min ago - C# insert image
22 hours 38 min ago - jkll
3 days 10 hours ago - Thank You
4 days 10 hours ago - Another approach
6 days 11 hours ago - Issue
1 week 1 hour ago - thanks
1 week 11 hours ago - Calendar date time
1 week 17 hours ago - Nice Explanation
1 week 21 hours ago - ramya
1 week 3 days ago

I am using following
I am using following code:
StringBuilder s = new StringBuilder();
//test aspx = new test();
StringWriter sw = new StringWriter(s);
HtmlTextWriter writer = new Html32TextWriter(sw);
base.Render(writer);
System.IO.Stream stream = new System.IO.FileStream(@"C:\new_pdf_name6.pdf", FileMode.OpenOrCreate);
Pdfizer.HtmlToPdfConverter htmlToPdf = new Pdfizer.HtmlToPdfConverter();
// open stream to write Pdf to to
htmlToPdf.Open(stream);
// write the HTML to the component
htmlToPdf.Run(s.ToString());
// close the write operation and complete the PDF file
htmlToPdf.Close();
This is giving following error on this statement:
htmlToPdf.Run(s.ToString());
Error is: The remote server returned an error: (503) Server Unavailable.
Please help