PDA

View Full Version : Few question about the ActiveX control


Vindic
March 7th, 2008, 01:07 AM
Morning,
I'm a French developer and in order to add a PDF Player to a program that i work on, I use your Foxit ActiveX. It's a really good product with good explanation document but I've some question in order to respect my book of specifications :

1/ Is it possible to hide and disabled the Scrollbar in the left of the PDF page ?
2/ Is there a function to Get the Size of the Opened PDF document ?
3/ And finally I have some problems with the SetLayoutMode function. In your documentation you say it takes two parameters the first is the display mode and the second the numbers of display columns. So if I write SetLayoutMode(0,1), in agreement with your Users Manual I'll see a single page in my display rectangle. But I always see the top of the next page...
4/ I also want to get the number of page of the opened document.
5/ In testing your VC examples of your software I remark that your software loose virtual memory when you Open/Close/Open/Close... file you don't return to the original memory use. I ask if you have any explanation for this problem.

Thank you for your attention, and I the company that I work for could work with you.

jinming_wang
March 9th, 2008, 06:44 PM
Hi,hide/disabled the Scrollbar is not the feature of ActiveX, and currently there is no function to get the size of the opened PDF document in our standard version of ActiveX.If you are interested in these functions, you may need a customized ActiveX.About the funcion SetLayoutMode,it is strange that we had never met the problem before.Are you sure that the poblem exists with every opened PDF document? To get the number of page of the opened document ,you could call the function GetPageCount in VC. About the memory leak problem,we have not confirmed it yet.Once confirmed, we will reply to you.

Vindic
March 10th, 2008, 01:25 AM
Before all, I've to thank you for your quick and clear reply.

With your advice I modify my program and I could solve some of my problems.

1/ SetLayoutMode work correctly.
2/ I can hide the ActiveX ScrollBar if I display the ActiveX into a reduct rectangle.

Now my program will be perfect if :
1/ I could Get Height and Width of my opened document.
2/ I could resolve this memory leak problem. This 2nd problem is the greatest because if we cannot resolve this one, we could'nt use your ActiveX. After, some test I can see that the Memory leak happened when I open/destroy the ActiveX control many time (approximately loose of 200Ko in virtual memory)
3/ It was a detail but I'll want to know if the background color under the displayed PDF could be configurable.

So I'll be glad if you could answer me with the same speed, Thanks.

PS : If that can help you to answer at my memory Leak problem I'd effect a memory leak detection in Visual Studio and he display this :
oleinit.cpp{82} client block at 0x00336F58, subtype c0, 68 bytes long.
A CmdTarget object at $00336f58, 68 bytes long.
{48} client block at 0x00334DF8,subtype c0, 64 bytes long.
A CDynLinkLibrary at $00334DF8, 64 bytes long.