Apache OpenOffice (AOO) Bugzilla – Issue 24695
Printing in image with OpenOffice using API pops a UI dialog
Last modified: 2017-05-20 11:27:48 UTC
STEPS TO REPRODUCE: 1. Save the attached image to disk. 2. Set the default page size of your printer to "Letter". 3. Write some code in Java to open this image in OpenOffice 1.1 on Windows 2000 and print it to the same printer without specifying any settings (like paper size / orientation) except the printer name. 4. Run the code. OBSERVED BEHAVIOR: A UI dialog pops up asking the user to choose an option from a set of 3 options ("Fit page to print range", "Posterize" and "Trim") before printing can proceed. EXPECTED BEHAVIOR: When printing using the API, no UI dialog must pop-up. Instead, some other mechanism (that is programmable in nature, for example a callback) must be used for getting this option from the client code.
Created attachment 12644 [details] A sample image file to test printing
forwarding to responsible developer
AS->TB: Please take over this bug. You have to find another place for the SdPrintDlg shown inside method SdViewShell::Print() inside file sd/source/ui/view/viewshe3.cxx. The following solutions exists: a) You move this dialog to the method SdViewShell::DoPrint() and look for a set parameter bSilent ... b) or you add a new parameter bSilent[bool] to the baseclass method SfxViewShell::Print() [localted in file sfx2/inc/viewsh.hxx] and use it inside your derived method. Please use a default value for this new parameter set to FALSE. Otherwhis you have to change to much code inside office. THX.
Hi TB, Could you please assign this defect a target milestone? I am keen to know by what time this defect might get fixed.
Set the target milestone
set owner to cl
set target to OfficeLater
set the owner to CL
Reset assigne to the default "issues@openoffice.apache.org".