Jump to content
Sign in to follow this  
mLipok

ACROBAT Error

Recommended Posts

mLipok

Windows 7 Pro 64bit

Acrobat Reader 9.5.3

When I use

Global $o_AutoIt_MyErrFunc = ObjEvent("AutoIt.Error", "_AutoIt_MyErrFunc")

$oPDF = ObjCreate("AcroPDF.PDF.1")
Func _AutoIt_MyErrFunc()
; Com Error Handler

$s_error_log = _
"$o_AutoIt_MyErrFunc.number is: " & @TAB & $o_AutoIt_MyErrFunc.number & @CRLF & _
"$o_AutoIt_MyErrFunc.windescription:" & @TAB & $o_AutoIt_MyErrFunc.windescription & @CRLF & _
"$o_AutoIt_MyErrFunc.description is: " & @TAB & $o_AutoIt_MyErrFunc.description & @CRLF & _
"$o_AutoIt_MyErrFunc.source is: " & @TAB & $o_AutoIt_MyErrFunc.source & @CRLF & _
"$o_AutoIt_MyErrFunc.helpfile is: " & @TAB & $o_AutoIt_MyErrFunc.helpfile & @CRLF & _
"$o_AutoIt_MyErrFunc.helpcontext is: " & @TAB & $o_AutoIt_MyErrFunc.helpcontext & @CRLF & _
"$o_AutoIt_MyErrFunc.lastdllerror is: " & @TAB & $o_AutoIt_MyErrFunc.lastdllerror & @CRLF & _
"$o_AutoIt_MyErrFunc.scriptline is: " & @TAB & $o_AutoIt_MyErrFunc.scriptline & @CRLF & _
"$o_AutoIt_MyErrFunc.retcode is: " & @TAB & $o_AutoIt_MyErrFunc.retcode & @CRLF & @CRLF

ConsoleWrite($s_error_log)

EndFunc ;==>_AutoIt_MyErrFunc

Then I take back that info in console

$o_AutoIt_MyErrFunc.number is: -2147467259

$o_AutoIt_MyErrFunc.windescription: Nieokreślony błąd.

$o_AutoIt_MyErrFunc.description is:

$o_AutoIt_MyErrFunc.source is:

$o_AutoIt_MyErrFunc.helpfile is:

$o_AutoIt_MyErrFunc.helpcontext is: 9712352

$o_AutoIt_MyErrFunc.lastdllerror is: 0

$o_AutoIt_MyErrFunc.scriptline is: 4

$o_AutoIt_MyErrFunc.retcode is: 0

Anybody know why ?

Edited by mlipok
  • Like 1

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2018-09-20

Share this post


Link to post
Share on other sites
water

-2147467259 (decimal) stnds for 0x80004005 (hex) and means: Unspecified failure (E_FAIL)

is an example how to use Acrobat Reader.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
mLipok

In the end, I found this thread.
I want to continue it.

But I wonder if it is not necroposting?
While on the other hand,

  • I was the author of this thread,
  • There are newer information
  • Well, the forum rules say about this so as not to open a few thread on the same topic.

So I continue.


in the latest beta has changed the return message given by Even Handler.

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "Z:\TOOLs\Macro\test4.au3" /UserParams    
+>23:48:10 Starting AutoIt3Wrapper v.2.1.4.5 SciTE v.3.3.9.0   Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0415)
>Running AU3Check (3.3.11.3)  from:C:\Program Files (x86)\AutoIt3\Beta  input:Z:\TOOLs\Macro\test4.au3
+>23:48:10 AU3Check ended.rc:0
>Running:(3.3.11.3):C:\Program Files (x86)\AutoIt3\Beta\autoit3.exe "Z:\TOOLs\Macro\test4.au3"    
--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop
$o_AutoIt_MyErrFunc.number is:  -2147221164
$o_AutoIt_MyErrFunc.windescription: Klasa niezarejestrowana.

$o_AutoIt_MyErrFunc.description is:     
$o_AutoIt_MyErrFunc.source is:  
$o_AutoIt_MyErrFunc.helpfile is:    
$o_AutoIt_MyErrFunc.helpcontext is:     
$o_AutoIt_MyErrFunc.lastdllerror is:    0
$o_AutoIt_MyErrFunc.scriptline is:  3
$o_AutoIt_MyErrFunc.retcode is:     

+>23:48:10 AutoIt3.exe ended.rc:0
+>23:48:10 AutoIt3Wrapper Finished..
>Exit code: 0    Time: 0.7495

Klasa niezarejestrowana. TRANSLATION: Class not registered.

 

It seems like I do not have Acrobat Reader installed.
But this is not true - I use it every day.

So what's the problem? Why the Event Handler gives this message?


Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2018-09-20

Share this post


Link to post
Share on other sites
water

I think it is not Adobe Acrobat Reader that is missing but Adobe Acrobat Writer.

I haven't found any indication that there is an API to access Adobe Acrobat Reader :(


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
mLipok

thanks.

I think I see my mistake.

Must check it at the weekend.


Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2018-09-20

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  

×