Hi,
i convert my webpage into pdf file in vb.net
i want to save that pdf file in a specific folder in any drive (C:\\ or D:\\)
how can i give a path in the below coding
Response.Buffer =True
Response.ContentType ="application/pdf"
Response.AddHeader("content-disposition", String.Format("attachment; filename={0}.pdf", Me.psno.Text))
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim sw AsNew StringWriter()
Dim hw AsNew HtmlTextWriter(sw)
Me.Page.RenderControl(hw)
Dim sr AsNew StringReader(sw.ToString())
Dim pdfDoc AsNew Document(iTextSharp.text.PageSize.A4, 15.0F, 15.0F, 10.0F, 0.0F)
Dim htmlparser AsNew HTMLWorker(pdfDoc)
PdfWriter.GetInstance(pdfDoc, Response.OutputStream)
pdfDoc.Open()
htmlparser.Parse(sr)
pdfDoc.Close()
Response.Write(pdfDoc)
Response.End()