Buy Now

novaPDF Professional
$62.44 $49.95

novaPDF Standard
$53.27 $39.95

novaPDF Lite
$24.94 $19.95

Awards & Reviews

  • 1_ico
  • 2_ico
  • 3_ico
  • 4_ico

Lockergnome feature

novaPDF is really neat

"novaPDF – Print To PDF Without Breaking The Bank. After downloading and installing the program (which takes all of one minute) you’re ready to print to a PDF. Any program that can print via the standard Windows printer interface can print to PDF (i.e. convert a file to PDF), including text, Word, Excel, […] , novaPDF will convert your files into PDF format without making your wallet cry."

Editor’s Review

This application is great

"[...] Pluses: novaPDF supports multiple profiles. This means that all your settings can be easily saved or loaded. Another great feature is the program’s ability to put bookmarks into the PDF document it creates. Drawbacks/flaws: [none] In conclusion: This application is great for generating PDF documents out of any type of printable data."

Indezine Review

Provides a good balance

"[...] novaPDF provides a good balance between price and performance -- it's a very usable option between free and highly priced PDF creators so that you can provide PDF output capabilities to a large number of users at a reasonable cost."

AC Review

Extremely easy to use

"[...]I highly recommend NovaPDF as a great and very simple way to create standard PDF documents that are fully compatible with Adobe Acrobat Reader. Nova PDF creator is an extremely easy to use and simple PDF creator"

Latest News

April 12, 2010

novaPDF 7.1 was released.

Changes in version 7.1:
  • Added visibility layers for watermarks
  • Added Document Creator option
  • Added Page Scaling options
  • Added option to remove PDF after emailing
  • Added Lithuanian language

You can download version 7 here: Download novaPDF 7.1

Stay Updated

To join, simply enter your email address below and click on Subscribe.

About Us

Softland, the company that develops novaPDF, achieved the Microsoft Certified Partner status with an ISV/Software Solutions Competency. Microsoft Certified Partner
Share
Add comment
Votes: 0
Comments: 0
Note: To be able to use the samples you must install novaPDF SDK as samples work only with it. Download it here: nova PDF SDK.

Word OLE VBNet sample is a simple Windows console application that converts a MS Word document (C:\Test.doc) to PDF using Word OLE automation.

Source Code

Imports System
Imports System.Drawing
Imports System.Drawing.Printing
Imports System.Windows.Forms
' the novapiLib package must be added as a    COM    reference
Imports novapiLib 

Module Module1
'    <summary>
'    The    main entry point for the application.
'    </summary>
Const PRINTER_NAME As String = "novaPDF Pro v6"
Const PROFILE_NAME As String = "Word OLE VBNet"
Const PROFILE_IS_PUBLIC As Integer = 0
Const NOVAPDF_INFO_SUBJECT As String = "Document Subject"
Const NV_PROFILE_EXISTS As Long = -707133434 

Sub Main()
  Try
    ' create the NovaPdfOptions object
    Dim pNova As NovaPdfOptions
    pNova = New NovaPdfOptions
    ' initialize the NovaPdfOptions object
    ' if you have an application license for novaPDF SDK,
    ' pass both the registration name and the license key to the Initialize() function
    ' pNova.Initialize(PRINTER_NAME, "<registration name>", "<license key>");
    pNova.Initialize(PRINTER_NAME, "", "", "")
    ' get the active profile ...
    Dim activeProfile As String
     Dim nActivePublic As Integer
    pNova.GetActiveProfile(activeProfile, nActivePublic)
    Try
      ' and make    a copy of it
      pNova.CopyProfile(activeProfile, PROFILE_NAME, PROFILE_IS_PUBLIC)
    Catch e As System.Runtime.InteropServices.COMException
      ' ignore profile exists error
      If (NV_PROFILE_EXISTS = e.ErrorCode) Then
        System.Console.WriteLine("Profile already exists")
      Else
        ' more    serious    error, propagate it
        Throw e
      End If
    End Try
    ' set the copy    profile    as active profile ...
    pNova.SetActiveProfile(PROFILE_NAME, PROFILE_IS_PUBLIC)
    ' and set some    options
    pNova.SetOptionString(NOVAPDF_INFO_SUBJECT, "VB.Net Hello document", PROFILE_NAME, PROFILE_IS_PUBLIC)
    ' set nova default printer
    pNova.SetDefaultPrinter()
    ' print word document
    Dim objWord As Object
    Dim objDoc As Object
    pNova.InitializeOLEUsage("Word.Application")
    objWord = CreateObject("Word.Application")
    pNova.LicenseOLEServer()
    objDoc = objWord.Documents.Open("C:\Test.doc", False, True)
    objDoc.PrintOut(False)
    objDoc.Close(False)
    objWord.Quit(False)
    ' restore active profile
    pNova.SetActiveProfile(activeProfile, nActivePublic)
    pNova.DeleteProfile(PROFILE_NAME, PROFILE_IS_PUBLIC)
    ' restore default printer
    pNova.RestoreDefaultPrinter()
  Catch e As System.Runtime.InteropServices.COMException
    MessageBox.Show(e.Message)
  Catch e As Exception
    MessageBox.Show(e.Message)
  End Try
End Sub 

End Module

Add comment
Name:
Email:
* Comment:
(Use BBcode - No HTML)


Others in this Category
document Hello World Visual Basic - SDK sample
document Java PDF creator (Word OLE) - SDK sample
document PDF Reports - SDK sample
document [novaPDF SDK] - If I set an option value via COM, will that be persistent, or will the option be reverted when the program terminates?
document [novaPDF SDK] How to generate a pdf file without the Save As dialog
» More articles
RSS

Legal Notices Terms of Use

Copyright Softland 2010. All rights reserved.