Sign in to follow this  
Followers 0
davidkim

Object Error

1 post in this topic

#1 ·  Posted (edited)

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

-----------------------------------------------------------

Tutorials

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.

FoxitReaderSDK.UnLockActiveX(“license_id”,”unlock_code”);

FoxitReaderSDK.OpenFile(“testdoc.pdf”,””);

---------------------------------------------------------------------------------

; 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
#include<GUIConstantsEx.au3>
#include<WindowsConstants.au3>
$PDFViewer = ObjCreate("Foxit.FoxitReaderSDKCtrl.3")
If Not IsObj($PDFViewer) Then
    MsgBox(0,'','not')
    Exit
EndIf


$Gui = GUICreate ( "Foxit PDF Reader", 830, 580,(@DesktopWidth-830)/2, (@DesktopHeight-580)/2 , _
        Bitor($WS_OVERLAPPEDWINDOW ,$WS_VISIBLE , $WS_CLIPSIBLINGS))
$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
Wend

GUIDelete()

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  
Followers 0