Class not registered error VBA

Forum for the PDF-XChange Editor - Free and Licensed Versions

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

Ashu2019
User
Posts: 8
Joined: Mon Feb 10, 2020 10:14 am

Class not registered error VBA

Post by Ashu2019 »

error.JPG

Dear Team,

Please help i am unable to use PDFXEditCore.x86.dll it says class not registered.

I want to open pdf edit it contents and save it back using VBA, any help will really be appreciated.


Thanks,
Ashish.
You do not have the required permissions to view the files attached to this post.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Class not registered error VBA

Post by Tracker Supp-Stefan »

Hello Ashu2019,

You have posted in the end user Editor forums, however your question appears to be SDK related.
Do you have an SDK license? If you do - please follow the instructions on how to register the required DLLs:
https://sdkhelp.pdf-xchange.com/view/PXV:Redistribution
And it should then work for you.

If you only have our end user Editor - then you would not be able to access and use the APIs through VBA with such a license.

Kind regards,
Stefan
Ashu2019
User
Posts: 8
Joined: Mon Feb 10, 2020 10:14 am

Re: Class not registered error VBA

Post by Ashu2019 »

Thanks a lot Stefan , Registering the .dll worked for me :D .

regsvr32 "Path of the file" & PDFXEditCore.x86.dll

However, Once I am done with the macro creation will I have to ask everyone using it to register the Dll at their machines as well?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Class not registered error VBA

Post by Tracker Supp-Stefan »

Hello Ashu2019,

Do you have an SDK license?
If you do not - you might be able to register the DLL and use it - but that could then also add "DEMO" stamps to the files generated - so please do use with caution! And yes - the registration will have to be done for each device - so it's best done as part of the deployment of your project.

Kind regards,
Stefan
Ashu2019
User
Posts: 8
Joined: Mon Feb 10, 2020 10:14 am

Re: Class not registered error VBA

Post by Ashu2019 »

Yes i do have license key but not sure of SDK license where can i find that?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Class not registered error VBA

Post by Tracker Supp-Stefan »

Hello Ashu2019,

Please DO NOT share any license keys here in the public forums or we will be forced to block those.

May I ask you to e-mail us to support@pdf-xchange.com with part of the license key you have now and we would let you know whether this is an SDK one.

Kind regards,
Stefan
Ashu2019
User
Posts: 8
Joined: Mon Feb 10, 2020 10:14 am

Re: Class not registered error VBA

Post by Ashu2019 »

Only to keep people updated here's the final code that worked out for me.

Code: Select all


Public Sub CreateDoc()
    Dim PXV As PDFXEdit.PXV_Inst
    Dim pxc As New PDFXEdit.PXC_Inst
    Dim Doc As IPXC_Document
    
     Set PXV = New PDFXEdit.PXV_Inst
PXV.Init
    
   Set pxc = PXV.GetExtension("PXC")
 
pxc.Init ""
 
Set Doc = pxc.OpenDocumentFromFile("File path\sample.pdf", Nothing)

Doc.WriteToFile "file path\edited.pdf"
Doc.Close

pxc.Finalize
   
End Sub


User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Class not registered error VBA

Post by Tracker Supp-Stefan »

Hello Ashu2019,

Thanks for sharing this!
I am sure it would be useful to others as well!

Kind regards,
Stefan