Upgrading to v11

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

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.
lidds
User
Posts: 558
Joined: Sat May 16, 2009 1:55 pm

Upgrading to v11

Post by lidds »

I have just upgraded to v11 of PDF Editor SDK and the following code is failing at each catch. Could you please let me know the equivalent code.

Code: Select all

Try
    myViewer.Inst.Settings("General.AppTitle").v = "Ticodi MarkupInsight"
    myViewer.Inst.Settings("MainFrm.TitleStyle").v = 1
Catch ex As Exception
    ' Close wait form
    SplashScreenManager.CloseForm(False)

    XtraMessageBox.Show("41,004 Error setting PDF Viewer form title" & vbNewLine & vbNewLine & ex.StackTrace, "MarkupInsight", MessageBoxButtons.OK, MessageBoxIcon.Error)
    Debug.WriteLine("Error setting PDF Viewer form title: " & ex.Message)
End Try

' Chnages colour to suit default MarkupInsight colour
Try
    If My.Settings.DarkMode = True Then
        Dim pr As PDFXEdit.ICabNode = myViewer.Inst.Settings("CustomUI")
        pr("Theme").v = "Black"
        myViewer.Inst.FireAppPrefsChanged(PDFXEdit.PXV_AppPrefsChanges.PXV_AppPrefsChange_CustomUI)
    Else
        Dim pr As PDFXEdit.ICabNode = myViewer.Inst.Settings("CustomUI")
        Dim clrArr As PDFXEdit.ICabNode = pr("Colors")
        SetCustColor(clrArr, "base", "rgbd(222,222,222)")
        SetCustColor(clrArr, "face", "rgbd(222,222,222)")
        SetCustColor(clrArr, "window", "rgbd(255,255,255)")
        SetCustColor(clrArr, "main.bg", "rgbd(222,222,222)")
        SetCustColor(clrArr, "dlg.bg", "rgbd(222,222,222)")
        SetCustColor(clrArr, "pg.bg", "rgbd(248,248,248)")
        SetCustColor(clrArr, "hot", "rgbd(191,224,255)")
        SetCustColor(clrArr, "tip", "rgbd(255,255,255)")
        SetCustColor(clrArr, "tip.dark", "rgbd(255,255,255)")
        SetCustColor(clrArr, "tip.light", "rgbd(255,255,255)")
    End If
Catch ex As Exception
    XtraMessageBox.Show("41,005 Error setting GUI colours" & vbNewLine & vbNewLine & ex.StackTrace, "MarkupInsight", MessageBoxButtons.OK, MessageBoxIcon.Error)
    Debug.WriteLine("Error setting GUI colours: " & ex.Message)
End Try

Try
    myViewer.Inst.Settings("CustomUI.Backgrounds.Main.Style").v = "S"
    myViewer.Inst.Settings("CustomUI.Backgrounds.Main.ShowOverlay").v = False
    myViewer.Inst.Settings("CustomUI.Backgrounds.Pages.Style").v = "S"
    myViewer.Inst.Settings("CustomUI.Backgrounds.Pages.ShowOverlay").v = False
    myViewer.Inst.Settings("CustomUI.Backgrounds.Dialog.Style").v = "S"
    myViewer.Inst.Settings("CustomUI.Backgrounds.Dialog.ShowOverlay").v = False
Catch ex As Exception
    XtraMessageBox.Show("41,006 Error setting GUI flat style" & vbNewLine & vbNewLine & ex.StackTrace, "MarkupInsight", MessageBoxButtons.OK, MessageBoxIcon.Error)
    Debug.WriteLine("Error setting GUI flat style: " & ex.Message)
End Try
lidds
User
Posts: 558
Joined: Sat May 16, 2009 1:55 pm

Re: Upgrading to v11

Post by lidds »

I am also getting the following error.
image.png
Any help would be appreciated.
You do not have the required permissions to view the files attached to this post.
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 13178
Joined: Wed Jan 03, 2018 6:52 pm

Re: Upgrading to v11

Post by Daniel - PDF-XChange »

Hello, lidds

I've just passed this up to the Dev team for their thoughts. we will be back as soon as I have heard from them.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]
lidds
User
Posts: 558
Joined: Sat May 16, 2009 1:55 pm

Re: Upgrading to v11

Post by lidds »

Thanks Dan,

I am also getting the following error. If this helps.

I have never had this when upgrading versions previously.

Code: Select all

 m_pxcInst = DirectCast(Me.docPreview.Inst.GetExtension("PXC"), PDFXEdit.IPXC_Inst)
image.png
Thanks

Simon
You do not have the required permissions to view the files attached to this post.
lidds
User
Posts: 558
Joined: Sat May 16, 2009 1:55 pm

Re: Upgrading to v11

Post by lidds »

Hi Dan,

Sorry to follow up so soon, but have you heard from Dev. Team.

I'm keen to get this resolved so that we can continue with our development of our project.

Also, is there any installation documentation for this new version as it seems that dll names have changed etc.

The way I use to install the new version was by simply having a dummy form that I would add the PDFXChange Editor Control on and then it would all work as expected. Is this the correct way with this version?

Thanks for your support

Simon
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 13178
Joined: Wed Jan 03, 2018 6:52 pm

Re: Upgrading to v11

Post by Daniel - PDF-XChange »

Hello, lidds

Unfortunately I dont have any news yet... sorry.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]
lidds
User
Posts: 558
Joined: Sat May 16, 2009 1:55 pm

Re: Upgrading to v11

Post by lidds »

Hi Dan,

As this has taken sometime to get a responce and I have spent hours trying to resolve this. I will be rolling back to your previous stable SDK.

I am however still interested in trying to get support for the upgrade to v11.

Thanks

Simon