Bug 37410 - Print Options don't work from API
Summary: Print Options don't work from API
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.4.0 RC1
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 08:25 UTC by clio
Modified: 2014-06-01 20:30 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description clio 2011-05-20 08:25:25 UTC
To reproduce:
1) Open Calc,
2) input some data to fill more than 1 print page
3) Run this macro:
REM  *****  BASIC  *****

Sub Main34
Dim prop(0) as new com.sun.star.beans.PropertyValue
''IsOnlySelectedSheets, IsIncludeEmptyPages
'prop(0).Name = "PrintContent"
'prop(0).Value = 2
prop(0).Name = "PageRange" 
prop(0).Value = "1"
'prop(1).Name = "PrintRange"
'prop(1).Value = 0 '1
'prop(2).Name = "Copies"
'prop(2).Value = 1
'prop(3).Name = "Collate"
'prop(3).Value = False

ThisComponent.print(prop())
End Sub

Expected result: Only the first page is printed.
Actual result: All pages are printed.

4) Then Edit the macro so that these lines will look like this:
prop(0).Name = "PrintContent"
prop(0).Value = 2
'prop(0).Name = "PageRange" 
'prop(0).Value = "1"
(i.e., uncomment "PrintContent")

5) Select a range and run the macro.

Expected result: Selected range is printed.
Actual result: All is printed.

I foulnd these properties here:
http://opengrok.libreoffice.org/xref/calc/sc/source/ui/unoobj/docuno.cxx#774
http://opengrok.libreoffice.org/xref/libs-gui/vcl/source/gdi/print3.cxx#345

In comments it is said that the properties should work from API, but they seem not work.
Comment 1 retired 2013-09-01 11:32:14 UTC
This bug is UNCONFIRMED. But I don't have any option to set it to that state? 

@Joren: Any idea what's up with that?

@clio: Is this bug still valid and happening when using the latest LO release? http://www.libreoffice.org/download/

Setting to NEEDINFO instead.
Comment 2 QA Administrators 2014-05-17 00:34:20 UTC
Dear Bug Submitter,

Please read the entire message before proceeding.

This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information.

For more information about our NEEDINFO policy please read the wiki located here: 
https://wiki.documentfoundation.org/QA/FDO/NEEDINFO

If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed.


Thank you for helping us make LibreOffice even better for everyone!


Warm Regards,
QA Team
Comment 3 QA Administrators 2014-06-01 20:30:17 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INVALID due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided):

a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. 
Please do not:
a) respond via email 
b) update the version field in the bug or any of the other details on the top section of FDO