Save Method Saves No Pages

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
BryanSteiger
Posts: 5
Joined: Tue Mar 04 2003

Save Method Saves No Pages

Post by BryanSteiger »

Good afternoon,

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
Any help would be greatly appreciated.

Bryan Steiger
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please download our latest 1.50c version of the PDF Creator from http://www.amyuni.com/en/support/updates.html

After installing and registering the latest dlls, will you still face this same issue?

Please check that you are saving the file in View and Design mode or in View Mode only to be able to view it in Acrobat Reader.
BryanSteiger
Posts: 5
Joined: Tue Mar 04 2003

Post by BryanSteiger »

Thank you; that appeared to take care of the problem. However, a new problem presents- when right-clicking on the Creator ActiveX object, choosing any of the options from the context menu thows an null reference exception.

Thanks for your time,

B.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hi,

When and how are you right clicking on the Creator ActiveX? After adding it to a form?

Thanks.
Post Reply