Question about multiple document

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

adntES
User
Posts: 71
Joined: Fri Mar 25, 2011 5:43 pm

Question about multiple document

Post by adntES »

Hi guys!,

If i open multiple document in programming by doing this.

Ax.openDocument(path1)
Ax.openDocument(path2)

I guess that there must be an instance of both document in Axviewer.
If so, why GetDocumentsCount return 1 ?

We can actually open more than one document right ?


I probably do something wrong :roll: ..
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Question about multiple document

Post by Vasyl - PDF-XChange »

Hi, adntES.
By default control works in the SDI mode. To enable MDI mode:

Code: Select all

ctrl.SetProperty("General.DocumentInterface", "MDI", 0);
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.
adntES
User
Posts: 71
Joined: Fri Mar 25, 2011 5:43 pm

Re: Question about multiple document

Post by adntES »

Vasyl-Tracker Dev Team wrote:Hi, adntES.
By default control works in the SDI mode. To enable MDI mode:

Code: Select all

ctrl.SetProperty("General.DocumentInterface", "MDI", 0);
HTH

Thx !
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7362
Joined: Wed Mar 25, 2009 10:37 pm

Re: Question about multiple document

Post by Paul - PDF-XChange »

:)
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com