 | OO-Snippets: Print Existing DocumentCommons| Keywords | print document |
|---|
| Language | ooRexx |
|---|
| Application | Writer |
|---|
| Authors | Åsmund Realfsen (initial)
|
|---|
| Supported Versions | 2.0.x 1.1.x 1.0.x |
|---|
| Supported OS | All |
|---|
| Question | How to I print an existing document to standard printer ?
|
|---|
| Answer | |
|---|
componentLoader = UNO.createDesktop()~XDesktop~XComponentLoader
fileToOpen = "file:///"directory()"/calc-print.ods"
calc = componentLoader~loadComponentFromURL(fileToOpen, "_default", 0, .UNO~noProps)
printer = calc~XPrintable
printer~print(.UNO~noProps)
::requires UNO.CLS
|
|