Redistribution

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

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

relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Redistribution

Post by relapse »

Hi! I have a new issue: I'd like to install my program on another machine. Currently it doesn't function, I'm getting an error message "The image format is not recognized", but I still can't localize it. I suppose this behavior depends on the fact that not all components are installed on the aim system. In my program I use the following ones: PDF-XChange PDF Viewer SDK and PDF-XChange PRO 4 SDK. I also installed the PDFXCview on my system. In my working directory of IDE I have the following libraries:
  • Antlr3.Runtime.dll
    AxInterop.PDFXCviewAxLib.dll
    Castle.Core.dll
    Castle.DynamicProxy2.dll
    dscrt40.dll
    FluentNHibernate.dll
    fm40base.dll
    fm40tiff.dll
    Iesi.Collections.dll
    Interop.PDFXCviewAxLib.dll
    ixclib40.dll
    log4net.dll
    NHibernate.ByteCode.Castle.dll
    NHibernate.dll
    PdfViewerAx.dll -> my library
    pxclib40.dll
    pxcview.dll
    xccdx40.dll
    xcpro40.dll
All these libraries are copied into the application directory on the external system. Should I additionally install some other things? I do have the SDK components installed on my machine but I can't install them somewhere else.

Thanks for your replies!

P.S. A colleague of me has only installed the PDF-XChange Viewer (no SDK!) and he can use my program (with the dll files listed above).
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Redistribution

Post by Stefan - PDF-XChange »

Hi Relapse,

Are you registering the Viewer DLL that comes with your application at install time? Or are you using the registration free version?

Best,
Stefan
relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Re: Redistribution

Post by relapse »

Do you mean whether I use the serial number and the developer code with the SetDevInfo method of the Viewer in my program code? Yes, I do.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Redistribution

Post by Stefan - PDF-XChange »

Hi Relapse,

I mean whether you run the "regsvr32 PDFXCviewAx.dll /s" on the target machine. Please check the "Redistribution" section of the Viewer AX for details :)

Cheers,
Stefan
relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Re: Redistribution

Post by relapse »

Hi! I've tried both with registration and without it (using manifest files) - no result. I took the files to register ActiveX in command line:
  • PDFXCview.exe
    PDFXCviewAx.dll
    Resource.dat
from C:\Program Files\Tracker Software\PDF-XChange Viewer SDK\Bin (it's a 32-bit machine where I'm trying to install it). Is that right? The PDF-XChange Library files are all in the application directory. Maybe it depends on the file versions, maybe on my compiling parameters, maybe on firewall settings, there are always enough unknown variables 8) .
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Redistribution

Post by Stefan - PDF-XChange »

Hi Relapse,

I presume you are developing on a 64 bit machine? In this case - please make sure you are distributing the correct DLL set for each OS version (32 and 64 bit sets) as if your installer package has only one set - that's most likely the 64 bit version.
Also make sure to include the fm40* dlls in your sets.

Best,
Stefan
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Redistribution

Post by Vasyl - PDF-XChange »

>> I'm getting an error message "The image format is not recognized", but I still can't localize it.

Possible reason for this - one of related *.dll/*.exe is broken OR your redistribution contains 64-bit module(s) that it cannot be runned on 32-system.

>> All these libraries are copied into the application directory on the external system. Should I additionally install some other things?
>> I do have the SDK components installed on my machine but I can't install them somewhere else.

From list of your files - you have used the our Viewer ActiveX Control.
Before usage of it - it should be installed (by standard way for all ActiveX controls) on the target system OR you may use special Click-Once method to use it without standard installation.

Here is the working C#-example that uses our registration-less ActiveX control (by Click-Once method):
http://www.docu-track.co.uk/FullDemo.RefFree.CS.x86.ZIP

Please look to PDF-XChange Viewer ActiveX SDK Help, [ActiveX Control Installation] section.


HTH
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.