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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save 'with format' when using Cognos script editor

Status
Not open for further replies.

dalex17

Technical User
Jul 14, 2002
96
0
0
US
Hello,

Does anyone know of a way to save an .xls file with format using the Cognos script editor?

I'm trying to automate a process where I click on a macro button developed through Cognos script editor to save an Impromptu report as either excel or text WITH FORMAT.


Thank you,

dalex
 
dalex,
Unless you prepared to manage a kludge using Sendkeys on earlier versions, 7.1 has an ExportExcelWithFormat command. (Note that the Excel version saved is in 5.0, not 2000)
lex
 
thanks drlex for your help!

p.s. Kludge? Never heard of that word. I'm guessing it must mean something similiar to concoction... :)
 
you're welcome.
I think the etymology of kludge (if one can be said to exist) would be klu(nky) crossed with (fu)dge, being an inelegant, unsatisfactory and unreliable solution.
If you need to see sendkeys in a script, do a search on the forum for excel & format.
lex
 
DRLX,

Is the export with format command as you write it above (i.e. exportwithformat), or does it look different in syntax?

Thanks,

Dalex
 
dalex,
it's as written. Example:
objImpRep.ExportExcelWithFormat strfilename
(assuming object objImpRep and string strfilename defined)
lex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top