Highlighted
Absent Member.
Absent Member.
399 views

[archive] Printing a word/excel document without opening it

[Migrated content. Thread originally posted on 21 February 2007]

Hello,

Im looking for some api to print a word document or excel without opening it. Anyone have a tip?

Thanks
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Printing a word/excel document without opening it

You have to "open" it, that is, you have to load it with Word, Excel respectively.
However, I suspect that what you really want, is to print it, without showing Word or Excel, if that is the case, just make sure the @Visible property of the Application object is set to false (0). This is actually supposed to be default. So unless you set it to 1, it should not show.

Another alternative is to use the shell to print, this can be accomplished by executing the shell association, followed by the flag to print. However, this will do the exact same thing, e.g. launch Word or Excel and execute a print.

My 2 cents is to launch Word / Excel yourself and have full control, which using the shell alternative will not give you.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Printing a word/excel document without opening it

found this several time ago, but never tested it...
http://www.softinterface.com/Convert-XLS/Batch-Print-Excel.htm
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.