Ask Your Question
0

Can I print without view print properties ?

asked 2016-11-13 15:36:25 +0200

vesodimov gravatar image

Hi friends. Can I print my documents without view this print properties: image description

I want when I press print button the documents to be printed immediately . Regards

edit retag flag offensive close merge delete

Comments

Just out of curiosity:
What if you are working on a document with 512 pages and hit the 'Print' icon inadvertently?

Lupp gravatar imageLupp ( 2016-11-13 18:36:43 +0200 )edit

Thank you, but this is not a answer to my Q.

vesodimov gravatar imagevesodimov ( 2016-11-13 18:45:07 +0200 )edit

I well know. As you may see I posted a comment, not an answer. My remark was thought as a hint concerning possible reasons for what it was made the way it is.
Though disccontent with my comment feel free, please, to tell me about the large-document-problem from your point of view.
Regards

Lupp gravatar imageLupp ( 2016-11-13 18:51:47 +0200 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2016-11-15 06:08:24 +0200

jaragon gravatar image

With a Writer document open so that the Writer toolbars are displayed (a blank document is fine), right-click on the Standard toolbar (the one with the Print icon) and select "Customize Toolbar." Click on the Toolbars tab, make sure the Standard toolbar is selected in the Toolbar drop-down. Scroll down and find the "Print Directly" icon. Click to check it and display it on the toolbar.

Clicking the Print Directly icon will print the active document with the current default print settings.

edit flag offensive delete link more
0

answered 2016-11-13 21:59:28 +0200

w_whalley gravatar image

You can do this with a macro. You can assign the macro to a button or to a menu entry. The following macro works for me.

sub PrintCopy
rem Prints a copy to default printer
rem Note: print whole spreadsheet and print duplex are set other places
rem the print ranges are set by Format/Print Ranges/Define (see print ranges help)
rem ----------------------------------------------------------------------
dim document   as object
dim dispatcher as object
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Printer"
args1(0).Value=sPrinter
dispatcher.executeDispatch(document, ".uno:Printer", "", 0, args1())

dim args2(1) as new com.sun.star.beans.PropertyValue
args2(0).Name = "Copies"
args2(0).Value = 1
args2(1).Name = "Collate"
args2(1).Value = true
dispatcher.executeDispatch(document, ".uno:Print", "", 0, args2())
end sub
edit flag offensive delete link more

Comments

Thank you. I will try. Regards

vesodimov gravatar imagevesodimov ( 2016-11-14 16:34:19 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-11-13 15:36:25 +0200

Seen: 333 times

Last updated: Nov 15 '16