Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
GSerg@adobeforums.com #1
LoadFile method: VBA crashes. Well, any othermethod crashes as well.
Hi there,
I've got Acrobat reader 7.0 (correctly installed etc)
In Excel 2003 VBA, I reference "Adobe Acrobat 7.0 Browser Control Type Library 1.0", create an instance of AcroPDFLib.AcroPDF and try to use it...
The only method that appears to work is the GetVersions (which I appreciate but don't really need). All the rest methods cause Excel to crash. Of course, I tried LoadFile method first, but it kept failing so I tried others just to see what'd happen...
However, if I place AcroPDF control on the UserForm, it works. But I don't need it as well, I want to be able to silently and invisibly load PDF's and print particular pages from them.
The effect is stable and shows on every PC I tried it on.
Can please anyone explain what happens?
Is that true that this "type library" appears in References dialog just to bring some mess, and thus should be ignored, because only visual control can be used?
If yes, can anyone suggest the way to accomplish my task (see above)?
I don't insist on PDF's actually. If there's a way to print specified pages from files that "Print to file" option produces (with or without (sorry! :) ) Acrobat products), it'll be great too.
Thanks in advance.
GSerg@adobeforums.com Guest
-
FMS Crashes
Hi guys, any help or thoughts on this. We have a text chat app that alows for many to not so many chat (IM CHAT0. We are seeing that when we hit 700... -
FP9 crashes
I've read that FP9 is "buggy", but I'd say it's just a downright POS. It crashes IE6 a couple of times each day. This is a BOPITA!!! Where can I... -
crashes
I've been using Contribute 2 for over a year but now I can't edit pages. The progress bar freezes at 75% every time. CTD300-83337-97224-64426 -
web app crashes.
Hello everyone, I'm having a nasty little problem that I am hoping has an easy answer. there are two places on the web site where on average... -
PS 7 Crashes
Delete prefs, then try again. -
Aandi_Inston@adobeforums.com #2
Re: LoadFile method: VBA crashes. Well, anyother method crashes as well.
I don't know if the answer is there, but have you checked what the IAC
Overview and IAC Reference say? I mention this because you sound as if
you may have only studied the object browser rather than the
documentation.
Aandi Inston
Aandi_Inston@adobeforums.com Guest
-
GSerg@adobeforums.com #3
Re: LoadFile method: VBA crashes. Well, anyother method crashes as well.
You're right :)
You see, I've been developing software for... let me see... 5 years. That gave me some experience of "If-THAT-happens-it-means-THIS" kind of things. Particulary, when I make a mistake (like, using a COM object improperly), it usually raises an exception. Yes, if I make mistake in my driver, my system dies. Or if I mess up with subclassing, my application crashes. That's fine, that's OK and that's how it should be. But third-party COM component should raise an exception. Or its function should return "You dumbass!" value. And if it crashes, that quite clearly shows to me that there's an error in it (sorry once again :) ) - either that, or the component was developed so negligently that it doesn't perform even basic error checking and everything...
However.
Yes, you're right (as I already said). I'll be studying these two.
I have to, anyway :)
Thanks for pointing that out. I'll post some more nagging if I don't find there what I want :)
GSerg@adobeforums.com Guest
-
Bernd Alheit #4
Re: LoadFile method: VBA crashes. Well, anyother method crashes as well.
You see, I've been developing software for... let me see... 5 years.
You never read the available documentation?
Bernd Alheit Guest
-
Aandi_Inston@adobeforums.com #5
Re: LoadFile method: VBA crashes. Well, anyother method crashes as well.
So, is that a way of saying you never did read the documentation?
Aandi Inston
Aandi_Inston@adobeforums.com Guest
-
GSerg@adobeforums.com #6
Re: LoadFile method: VBA crashes. Well, anyother method crashes as well.
I do read the documentation - and even write it sometimes.
I do not always START from reading documentation. Because those 5 years usually help to sort out things. But anyway, I DO read documentation to make myself sure that I've done everything right. But this reading sometimes occurs after everything is working.
Hmmm... sounds like if I were programming in Monte-Carlo way, although I don't :)
I mean, somethimes the object model of the component is so well designed, and the error messages are so well-written, that you can easily build everything without a single line of a manual. Sometimes that's not true, and I believe this is the case too :) That's why I really LOVE MSDN and sure that it's the best thing MS has ever created.
Well, back to our topic :)
So. I've had a look at IAC Reference. It contains descriptions (quite obvious and useless) of the methods plus some general words.
Let's have a look.
"AxAcroPDFLib.AxAcroPDFAn object containing a set of methods that provide access to PDF browser controls. This is a creatable interface. This object makes it possible to load a file, move to various pages within the file, and specify various display and print options."
That's all regarding the object I need.
Yup.
Well, there are methods description, but we're not there at the moment.
Please, those of you who are experienced with that, tell me in the straightforward way. Yes, it is possible to create an instance and load pdf into it without displaying the control. Or No, it is not possible.
If Yes, point out the place in the documentation that shows where I'm mistaking, please. Because I didn't find it there.
Oh, and regarding second one, Overview. I tried to download it, I was requested to register, I registered, and then got 403: Forbidden. Sorry if the answer is there, I just can't get it.
GSerg@adobeforums.com Guest
-
chicks@adobeforums.com #7
Re: LoadFile method: VBA crashes. Well, anyother method crashes as well.
Yes, it is possible to create an instance and load pdf into it without
displaying the control. Or No, it is not possible.
Not with this interface, which is meant to be displayed.
To invisibly load and print PDF files, use the DDE interface.
chicks@adobeforums.com Guest
-
GSerg@adobeforums.com #8
Re: LoadFile method: VBA crashes. Well, anyother method crashes as well.
That's funny.
In my first post, I mentioned that I've got Acrobat Reader 7.0.
No, I haven't got Acrobat. I've only got Reader. And the question was - how to do everything with it.
Use DDE... I thought that was a good idea, but...
After a while I was allowed to get my Overview.pdf (at last). From it I learned 2 marvelous things:
- what's the name of the DDE server (NOT listed in the Reference.pdf anywhere), and that
- Reader does not support DocPrint command. It supports only FilePrint, which prints all pages at the same time, which I don't need.
So the answer is No, it's not possible.
GSerg@adobeforums.com Guest



Reply With Quote

