PDA

View Full Version : Command Prompt - opening pdf file


Ann Casey
October 13th, 2008, 11:07 AM
I am attempting to open a pdf file at the command prompt by executing the following at the run command prompt :
monarch /rpt:"d:\ac\classic.pdf" /mod:"d:\ac\classic.xmod" /exp:"d:\ac\xxx.csv".
However I get the following error :
Unhandled exception at 0x00545d92 in Monarch.exe: 0xC0000005: Access violation reading location 0x00000020 - and am given the option to debug.
I understand that Pdf files are sometimes problematic in certain areas - is it possible to open a pdf file at the command prompt for processing ?
I am only a recent user of Monarch - so as a test I have entered the above command witht a file which is prn file. This works successfully.
I have also stripped back the above command with just the rpt parameter and get same issue, so it would appear that attempting to open the pdf at command prompt is the issue.
I can process the pdf file in question thru normal processing via the application.
Has anyone any insight into similar issue ?

Ken Indorato
October 13th, 2008, 11:46 AM
Ann,

Run the command line without the "/rpt:" parameter for the PDF. This is a known bug in V9 which will be fixed in the next release.

Ken

Ann Casey
October 13th, 2008, 12:32 PM
Many thanks Ken,
tested (with my working file - not the classic.pdf lesson files)and works perfectly .
Just one think I did notice was, that putting ' /T' after the exp parameter string, to explicitly define that it is the resultant table that is to be exported, ie
monarch "d:\ac\onlinefile1.pdf" /mod:"d:\ac\otheractual.xmod" /exp:"d:\ac\out3.csv /T
doesnt seem to successfully export to the desired folder, although there is visible (but quick) processing on screen. However omitting will successfully create the exp file in the desired folder.
Ann

Grant Perkins
October 13th, 2008, 04:21 PM
Ann,

Your example line above seems to have a missing " at the end. Is this just a typo in the forum version or is it also missing in the batch file?



Grant

Ann Casey
October 14th, 2008, 04:44 AM
Grant
Thanks for you note. You are quite correct - there is a " missing.
I have now rerun with missing character in place - and yes it does run as expected; /exp: parameter definition creates csv file in correct directory location.
Thanks again.

Ann