Print ASP.NET page to PDF RRS feed

  • Question

  • User-221107099 posted

    I have Adobe Distiller installed and references added but still can't print to PDF.  I have tried printing from postscripct to PDF and straight to PDF.  Everything I have tried doesn't even create the PDF file on the drive, let alone print the page.

    Most of the code is commented as I have tried it and it didn't work.

    Dim file as string
    Dim Distiller6 as new PDFDistiller
    Dim fileName as string
    file = "C:\Folder\MyPDF.pdf"
    fileName = "C:\PSFolder\MyPDF.ps"
    'Distiller6.FileToPDF(Me.Page.ToString, file, "No")
    'Distiller6.FileToPDF(Me.Page.Session.Contents.ToString, file, "No")
    'Distiller6.FileToPDF(Me.Page.CreateHtmlTextWriter(IOTextWriter), file, "No")
    'Distiller6.FileToPDF(fileName, file, "No")

      Any insight would be helpful.

    Monday, April 16, 2012 11:43 AM


All replies