Page 1 of 1

Catastrophic Failure on Document.WriteToFile

Posted: Sat Mar 06, 2021 7:53 pm
by Syntax
Hello to all!

Lately i've been trying to understand why this "catastrophic failure" happens.
I have started the code on Excel VBA, but for the sake of testing i created a small project on VB.NET.
Unfortunately, same error raises.

The code i have is the most simple one, purely for testing.

I dont know if im allowed to post this error video i posted to my channel, please tell me if i cant > https://youtu.be/yu_2X5nFdvQ

Any help would be extremely appreciated!

Code: Select all

    Private Shared Sub CreateDoc()
        Dim PXC As New PXC_Inst

        'Initialize
        PXC.Init("")

        'Create new document, save as pdf
        Dim Doc As IPXC_Document = PXC.NewDocument()
        Doc.WriteToFile("c:\users\syntax\desktop\Test.pdf")

        'Close document and Finalize
        Doc.Close()
        PXC.Finalize()
    End Sub

Re: Catastrophic Failure on Document.WriteToFile

Posted: Wed Mar 10, 2021 9:28 am
by Sasha - PDF-XChange
Hello Syntax,

Replied here:
viewtopic.php?f=67&t=35682#p149415

Cheers,
Alex