How to generate PDF file using VB.net?

I would like to create a very simple report with some images and text and I am wondering if there is a way to generate a PDF using vb.net?

+2


source to share


5 answers


take a look at this SO question. It is specific to C #, but since the libraries are .net compatible you should be fine



UPDATE http://sourceforge.net/projects/pdfsharp/ and http://www.pdf-technologies.com/

+1


source


You can export to a PDF file using the Crystal Reports object that comes with Visual Studio.



+2


source


The PDFSharp library ( http://pdfsharp.com/ ) is what I used recently in a C # project. There are many advanced features, but luckily you can start with a few basic commands. Try it.

+2


source


Use MicrosoftReportViewer from the toolbar.

+1


source


Word can be exported as pdf:

    Dim doc As Word.Document = New Word.Document()
    doc.Content.Text = "Hello World"
    doc.ExportAsFixedFormat("C:\mypath\myfilename.pdf", Word.WdExportFormat.wdExportFormatPDF)
    doc.Close(False)

      

+1


source







All Articles