- Open Visual Studio .NET and create a new Visual Basic ASP.NET Web Application.
- On the Solution Explorer, right click on the References folder and select "Add reference...".
- Select "DynamicPDF Generator for .NET" from the list on the ".NET" tab and click "Select" then "OK".
- On the Solution Explorer, right click on the Web Application Project and select "Add --> Add Web Form...".
- Name the form "HelloWorld.aspx" and select the "Open" button.
- On the Solution Explorer, right click on "HelloWorld.aspx" and select "View Designer".
- Select the "HTML" tab to view the HTML of the web form.
- Remove all HTML code on the web form below the @Page directive (leave the @Page directive on the web form).
- On the Solution Explorer, right click on "HelloWorld.aspx" and select "View Code".
- Add the following Imports directives to the top of the file:
Imports ceTe.DynamicPDF Imports ceTe.DynamicPDF.PageElements
- Add the following code to the "Page_Load"
method:
Dim MyDocument As Document = New Document() Dim MyPage As ceTe.DynamicPDF.Page = New ceTe.DynamicPDF.Page() MyPage.Elements.Add(New Label("Hello World!", 0, 0, 100, 12, Font.Helvetica, 12)) MyDocument.Pages.Add(MyPage) MyDocument.DrawToWeb(Me) - Right click on the new web form and select "Set As Start Page".
- Run the project to view the generated PDF document in your browser.

