Ash Rai has asked for the wisdom of the Perl Monks concerning the following question:

Hi!
Please help me if anyone of you monks are enlightened on the ways of Wx::ActiveX module.

I am baffled by a problem:

I have installed WxWidgets 2.8.4, WxPerl0.26 and Wx-ActiveX-0.059901, all of it just so I can display a pdf file in a window.

Cpan example shows the way to load pdf file as follows:

use Wx::ActiveX::Acrobat ;
my $acrobat = Wx::ActiveX::Acrobat->new($p,-1,xD,wxD);
$acrobat->LoadFile("./test.pdf");



But when I do the same thing I get error:

method <LoadFile> not found at C:/Perl/site/lib/Wx/ActiveX.pm line 26.

I have searched a lot for answer and nobody seems to have it. Thank you in advance.
  • Comment on Question on Wx::Activex::Acrobat module

Replies are listed 'Best First'.
Re: Question on Wx::Activex::Acrobat module
by Anonymous Monk on Aug 10, 2007 at 03:06 UTC
    How did you install it? Did you test the demos?
      I got the module from sf.net ,
      the module is Wx-ActiveX-0.059901-wxperl0.26-wxmsw2.6.2-5.8.6.zip

      You can also get it from cpan ,
      they are same version 0.05 , and this is where I saw the example.

      Now to answer your question:

      1. I installed it using command line ppm (ppm install <ppd filename>) just as shown in readme.txt doc.

      2. The Sourceforge.net doesn't have demo for Wx::ActiveX::Acrobat, I don't have problem with other aspects of the module Wx, I can build windows and use controls, it's just that the particular module Wx::ActiveX::Acrobat doesn't load pdf file for me as it is supposed to from what I've read in Cpan.

      Thank you. I appreciate your effort.