I'm using PDF Creator Version 1.5 Professional's ActiveX component with VB .NET. The ActiveX control is on a windows form. I can load pdf files and create new objects in the loaded file. I call the Save method and it throws no exceptions. However, when I attempt to load the saved document, I get a null reference exception. Attempting to open the file in Adobe Acrobat returns an error indicating the .pdf file has no pages.
Code: Select all
Private Sub cmdSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSave.Click
SFD1.DefaultExt = ".pdf"
SFD1.ShowDialog()
Dim strPDF As String = SFD1.FileName
strFileName = SFD1.FileName
Me.PDF1.SetLicenseKey("","")
Me.PDF1.Save(strPDF, ACPDFCREACTIVEX.FileSaveOptionConstants.acFileSaveAll)
End Sub
Bryan Steiger