PDF crash in Visual Basic

  • Follow


Hello,

I find myself in charge of a VB 6 application that loads a PDF file
onto a form using the PDF.ocx control.  The pdf file is loading fine on
my machine and on one other development machine but on four other
machines, when I load the form with the PDF ocx on it, when Adobe
starts to open it gets a memory access error and crashes the entire
application.

On my machine I have a full version of Adobe 5 and on the other
development machine on which the application works, Adobe 5.0 reader is
installed.  On the other machines there's a mix of Full and Reader
Adobe 5.

I have tried installing Adobe 6 but this has not resolved the error.
My question is, has anyone else come across this problem.  If so is it
anything to do with the version of Adobe installed on the machine and
are there any special considerations for registering the application?

Thanks for your help

luvin lunch

0
Reply martina_mullin (23) 10/13/2005 12:54:41 PM

"Luvin lunch" <martina_mullin@o2.ie> wrote:

>I find myself in charge of a VB 6 application that loads a PDF file
>onto a form using the PDF.ocx control.  The pdf file is loading fine on
>my machine and on one other development machine but on four other
>machines, when I load the form with the PDF ocx on it, when Adobe
>starts to open it gets a memory access error and crashes the entire
>application.

It's difficult to give specific advice. (The only really good advice
would have been given before you started, not to use PDF.OCX).

PDF.OCX is an unsupported, undocumented component not intended for
programming. It was deleted after Acrobat/Reader 6.

Acrobat/Reader 7 include a new, supported and documented alternative.
If migrating to this latest version is practical, then redoing the
work with this new component might be a reasonable way forward.
----------------------------------------
Aandi Inston  quite@dial.pipex.com http://www.quite.com
Please support usenet! Post replies and follow-ups, don't e-mail them.

0
Reply quite 10/13/2005 1:19:33 PM


Hi Aandi,

Thanks a million for the reply to my query.  I have been looking for an
alternative to use instead of the PDF.ocx.  I'd read that the ocx came
with Adobe 4 but I didn't realise it had been scrapped by 6.

Anyway, I'm going to change the code to use an alternative and I think
the easiest thing would be to use what comes with Adobe 7.  Could you
please tell me the name of the replacement as I've installed Adobe
Reader 7 and there is no ocx with it.  Is it one of the dlls?

It was great to get some feedback at last so thanks again.


Aandi Inston wrote:
> "Luvin lunch" <martina_mullin@o2.ie> wrote:
>
> >I find myself in charge of a VB 6 application that loads a PDF file
> >onto a form using the PDF.ocx control.  The pdf file is loading fine on
> >my machine and on one other development machine but on four other
> >machines, when I load the form with the PDF ocx on it, when Adobe
> >starts to open it gets a memory access error and crashes the entire
> >application.
>
> It's difficult to give specific advice. (The only really good advice
> would have been given before you started, not to use PDF.OCX).
>
> PDF.OCX is an unsupported, undocumented component not intended for
> programming. It was deleted after Acrobat/Reader 6.
>
> Acrobat/Reader 7 include a new, supported and documented alternative.
> If migrating to this latest version is practical, then redoing the
> work with this new component might be a reasonable way forward.
> ----------------------------------------
> Aandi Inston  quite@dial.pipex.com http://www.quite.com
> Please support usenet! Post replies and follow-ups, don't e-mail them.

0
Reply Luvin 10/13/2005 3:57:17 PM

"Luvin lunch" <martina_mullin@o2.ie> wrote:

>Anyway, I'm going to change the code to use an alternative and I think
>the easiest thing would be to use what comes with Adobe 7.  Could you
>please tell me the name of the replacement as I've installed Adobe
>Reader 7 and there is no ocx with it.  Is it one of the dlls?

I don't know: the place to start is the documentation, since this time
around Adobe documented. IAC Reference and IAC Overview,
http://partners.adobe.com/public/developer/acrobat/devcenter.html
(free registration required).

This documents a lot of stuff, which except as noted is Acrobat only.
All the OLE is Acrobat only *except* the new axAcroPDF interface.
----------------------------------------
Aandi Inston  quite@dial.pipex.com http://www.quite.com
Please support usenet! Post replies and follow-ups, don't e-mail them.

0
Reply quite 10/13/2005 6:14:40 PM

Hi Aandi,

I had a look at the adobe website and found the axAcroPDF interface you
were talking about.  I toyed with the idea of wrapping the interface in
a control to replace the pdf.ocx I was using originally but decided to
go with a third party control that's reader independent instead.  As
far as I could tell, in VB 6 the axAcroPDF requires late binding and
had some behaviours I didn't want (e.g. only opening a file properly if
there's no other version of Adobe open on the machine).

Just replying to follow up and also to thank for your guidance.  It was
much appreciated.

0
Reply Luvin 10/26/2005 9:12:55 AM

4 Replies
132 Views

(page loaded in 0.09 seconds)

Similiar Articles:













7/20/2012 7:49:16 PM


Reply: