Issue 24695 - Printing in image with OpenOffice using API pops a UI dialog
Summary: Printing in image with OpenOffice using API pops a UI dialog
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All Windows 2000
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2004-01-22 09:40 UTC by amit_batra
Modified: 2017-05-20 11:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

A sample image file to test printing (19.30 KB, image/png)
2004-01-22 09:42 UTC, amit_batra
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description amit_batra 2004-01-22 09:40:56 UTC
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.

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.

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.
Comment 1 amit_batra 2004-01-22 09:42:04 UTC
Created attachment 12644 [details]
A sample image file to test printing
Comment 2 ooo 2004-01-22 14:42:41 UTC
forwarding to responsible developer
Comment 3 andreas.schluens 2004-01-26 05:57:16 UTC
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.
Comment 4 amit_batra 2004-03-31 05:57:39 UTC
Hi TB, Could you please assign this defect a target milestone? I am keen to 
know by what time this defect might get fixed.
Comment 5 tb 2004-03-31 08:07:00 UTC
Set the target milestone
Comment 6 ooo 2004-12-14 11:55:25 UTC
set owner to cl
Comment 7 ooo 2004-12-14 11:58:37 UTC
set target to OfficeLater
Comment 8 thorsten.ziehm 2004-12-14 15:28:19 UTC
set the owner to CL
Comment 9 Marcus 2017-05-20 11:27:48 UTC
Reset assigne to the default "".