1. Open Visual Studio .NET and create a new C# ASP.NET Web Application.
  2. On the Solution Explorer, right click on the References folder and select "Add reference...".
  3. Select "DynamicPDF Generator for .NET" from the list on the ".NET" tab and click "Select" then "OK".
  4. On the Solution Explorer, right click on the Web Application Project and select "Add --> Add Web Form...".
  5. Name the form "HelloWorld.aspx" and select the "Open" button.
  6. On the Solution Explorer, right click on "HelloWorld.aspx" and select "View Designer".
  7. Select the "HTML" tab to view the HTML of the web form.
  8. Remove all HTML code on the web form below the @Page directive (leave the @Page directive on the web form).
  9. On the Solution Explorer, right click on "HelloWorld.aspx" and select "View Code".
  10. Remove all using directives and replace that section with the following code:
    using System;
    using ceTe.DynamicPDF;
    using ceTe.DynamicPDF.PageElements;
    
  11. Add the following code to the "Page_Load" method:
    Document document = new Document();
    ceTe.DynamicPDF.Page page = new ceTe.DynamicPDF.Page();
    page.Elements.Add( new Label( "Hello World!", 0, 0, 100, 12, Font.Helvetica, 12 ) );
    document.Pages.Add( page );
    document.DrawToWeb( this );
    
  12. Right click on the new web form and select "Set As Start Page".
  13. Run the project to view the generated PDF document in your browser.

See Also

My First DynamicPDF Document | DynamicPDF.Generator Assembly