Software Companions Support Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
ScottF

Registered:
Posts: 6
Reply with quote  #1 
It am converting .dwfx to pdf - some times, not all, when I call .OpenFileEx the handle returned is -1.  I need this call in order to get the sheet count in the dwfx - then when call .GetNumFilePagesEx I get exception "value does not fall within the expected range".

I can open the dwfx fine in a viewer - so I know it is not corrupt.

Any ideas?

Thanks.

softcomp

Administrator
Registered:
Posts: 242
Reply with quote  #2 
Could you please check the last error code, which can be returned using the LastError property, after OpenFileEx fails (and return -1 handle)?

This code may give an indication of what went wrong.

Regards,
Support


ScottF

Registered:
Posts: 6
Reply with quote  #3 
Hello,

Thank you for your assistance, the LastError code returned = 3.

Scott
softcomp

Administrator
Registered:
Posts: 242
Reply with quote  #4 
Hi,

Error code 3 means no license.
Do you use a trial or have you purchased a license?

It's strange that you only get the error only on some calls.
And which version are you currently using?

Regards,
Support
ScottF

Registered:
Posts: 6
Reply with quote  #5 
We are evaluating the converter using the 30 day trial - looks like the 30 days are up.  We will go ahead and purchase a license as the testing we performed was very good.

Thanks,
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.