Jump to content
Sign in to follow this  

Object Error

Recommended Posts

Hi. All Users

topic it did not know the method which it records well.

< == It reads and step route it wants.

It asks a question once again.

I Object connect the File on of AU3 code insides and,

I under using will FoxitReader_AX_Std_Eval.OCX.

FoxitReader_AX_Std_Eval.OCX was Menual



The Foxit Reader SDK ActiveX control comes with a single OCX file. To install it, please use command "regsvr32 foxitreader_ax.ocx". You may need to specify the proper path if foxitreader_ax.ocx is not stored in current directory.

The ActiveX control handles user interface for you. It also supplies multiple properties and methods so that your application is able to control the ActiveX.

The following is a example, suppose we had already created an ActiveX control called FoxitReaderSDK.

1) Open a PDF File

We will open a PDF document named “testdoc.pdf”

// NOTE: If you are evaluating ActiveX, you don’t need to unlock it,

// then evaluation marks will be shown on all PDF pages.

// For paid customers, please unlock the ActiveX first.




; Step 1
;  Download FoxitReader_AX_Std_Eval.OCX is c:\FoxitReader_AX_Std_Eval.OCX Save

; Step 2
;  regsvr32 c:\FoxitReader_AX_Std_Eval.OCX
;  Window MSGBOX [FoxitReader_AX_Std_Eval.OCX DllRegisterServer OK]

; Step 3 running this script
$PDFViewer = ObjCreate("Foxit.FoxitReaderSDKCtrl.3")
If Not IsObj($PDFViewer) Then

$Gui = GUICreate ( "Foxit PDF Reader", 830, 580,(@DesktopWidth-830)/2, (@DesktopHeight-580)/2 , _
$GUIActiveX = GUICtrlCreateObj ( $PDFViewer, -1, -1, @DesktopWidth, @DesktopHeight)
GUICtrlSetResizing ( $GUIActiveX, $GUI_DOCKAUTO)
GUISetState ()

; Step 4 Error
  $PDFViewer.OpenFile   ("C:\test.pdf" ,"" );
; <======= error
; ErrorMsg is
; Line29 (File "C:\Foxit_Reader_Error.au3");
; $PDFViewer.OpenFile   ("C:\test.pdf");
; $PDFViewer.OpenFile   ("C:\test.pdf")^ERROR
; Error: The requested action with this object has failed.

While 1
    $msg = GUIGetMsg()

    If $msg = $GUI_EVENT_CLOSE Then ExitLoop


Why the error should have occurred, it will not know.

It requests a help.

Edited by davidkim

I interest am many quite in AutoitScript.From that is [http://cafe.naver.com/autoitscript[/color]] Korea of cafe(blog) to be operating, [size="2"][color="#ff00ff"]English cannot well[/size].Many help it requests.To read, it stands it thanks.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...