Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I Copy Report Image using code - Imp 7.1

Status
Not open for further replies.

DoubleD

Technical User
Apr 2, 2001
766
US
Using Impromptu 7.1, you have the option to Edit, Copy Special, Copy Report Image.
I haven't found it referenced anywhere in the macro or ScriptEditor documentation how to invoke this command through code.

Any ideas?

I am what I am based on the decisions I have made.

DoubleD [bigcheeks]
 
Nevermind, I got it.

CopySpecialToClipboard will capture the whole report image.

I am what I am based on the decisions I have made.

DoubleD [bigcheeks]
 
I'm using Impromptu version 7.1.340.109 and am having problems using this. Here's a snipet from script:

Set objImpRep = objImpApp.ActiveDocument
objImpRep.SpecialCopyToClipboard (0)

I encounter error number 91 with this last line noted as the error line. Any help is greatly appreciated!

Thanks

Brenda

 
Looks like a typo, try this:

objImpRep.CopySpecialToClipboard 0

I am what I am based on the decisions I have made.

DoubleD [bigcheeks]
 
Thanks for catching my mistake! I did a cut and paste of your input into my macro to avoid more typos. Unfortunately, I continue to get the same error? Any other ideas of where I should look next is welcome...
 
It's possible this line:
Set objImpRep = objImpApp.ActiveDocument
is not capturing a valid object.

Without seeing more of your script and having the detailed error message, it's hard to say.

I am what I am based on the decisions I have made.

DoubleD [bigcheeks]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top