Catastrophic Failure on Document.WriteToFile

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
Syntax
User
Posts: 6
Joined: Thu Mar 04, 2021 5:24 pm

Catastrophic Failure on Document.WriteToFile

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Catastrophic Failure on Document.WriteToFile

Post by Sasha - Tracker Dev Team »

Hello Syntax,

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

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply