Code below:

lcReptName="C:\"+Curdir()+'Reports\'+'invMultiFinal.frx'

lcOutFile="C:\"+Curdir()+'PDFFiles\'+ lcOutFName

Do foxypreviewer.app

&& OBJTYPE 10 = PDF , 11 = PDF AS IMAGE

&& Destination

LOCAL loReport as "PreviewHelper" OF "FoxyPreviewer.App" 

loReport = CREATEOBJECT("PreviewHelper") 

WITH loReport as ReportHelper 

        .AddReport( lcReptName, "NODIALOG") 

        .cDestFile = lcOutFile  && Use to create an output without
previewing

        .RunReport() 

ENDWITH 

loReport = NULL 

 

When it gets to .RunReport() I get the following error:

Error 4143: An invalid file handle has been set.

Of course no report is generated.

 

What does this mean?

I have tried the direct link to the files i.e.
drive+curdir()+directory+filename and in the debugger both are valid
filenames.

 

Any ideas?

TIA,

Mike

 

 



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to