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 to print an embedded spreadsheet?

Status
Not open for further replies.

troyddaniels

Programmer
Jan 11, 2007
28
US
This might be an easy one, but I have an embedded excel spreadsheet that I dump data in from a database. I'm wondering how to print that worksheet out without having to export it to the actual excel application. Can anyone help me with this?

Thanks
 
Thanks, but I tried that already and it gives me the "object doesn't support that method." error. The PrintOut command doesn't even come up in my object explorer. I can print out the window and the spreadsheet with the form.printform command but that's as far as I can get it. Am I missing a reference or something?

Thanks.
 



When you intorrogate the SheetObject in you code using the Watch Window, what kind of object does it say you have?

Skip,

[glasses] [red][/red]
[tongue]
 
When I add a watch to the object it says "object out of context", and that it's type is "empty". That's if I add the .printout command to it. If I add a legit command it tells me that it is a variant/object/spreadsheet.
 



Well, maybe, instead of taking in coded terms, you might post...

1. the code that SETS the object as well as

2. the code that errors.

Skip,

[glasses] [red][/red]
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top