Issue 54702 - regression: Wrong array indexes in Basic macro when exporting as PDF
Summary: regression: Wrong array indexes in Basic macro when exporting as PDF
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: OOO 2.0 Beta2
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: marc.neumann
QA Contact: issues@sw
URL:
Keywords: oooqa, regression
: 54624 57739 (view as issue list)
Depends on:
Blocks:
 
Reported: 2005-09-16 14:11 UTC by seimet
Modified: 2013-08-07 14:42 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description seimet 2005-09-16 14:11:31 UTC
When recording a macro that exports the current document as a PDF file the
following code is generated:

dim args1(3) as new com.sun.star.beans.PropertyValue
args1(0).Name = "URL"
args1(0).Value = "file:///home/us/source/linkbylink/doc/en/linkbylink_en.pdf"
args1(1).Name = "FilterName"
args1(1).Value = "writer_pdf_Export"
args1(4).Name = "FilterData"
args1(4).Value =
Array(Array("UseLosslessCompression",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("Quality",0,90,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("ReduceImageResolution",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("MaxImageResolution",0,300,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("UseTaggedPDF",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("ExportNotes",0,false,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("UseTransitionEffects",0,true,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("FormsType",0,0,com.sun.star.beans.PropertyState.DIRECT_VALUE),Array("",0,,com.sun.star.beans.PropertyState.DIRECT_VALUE))
args1(5).Name = "SelectionOnly"
args1(5).Value = true

This code results in an error when running the macro because the array indexes
are obviously wrong.

Additionally, when trying to record a macro for PDF file export the "PDF
options" dialog windows pops up. This makes the macro more or less useless
because user interaction is required in this dialog. The macro should include
the handling of this dialog, just like it was handled when the macro was recorded.
Comment 1 h.ilter 2005-09-19 16:15:29 UTC
HI->JSK: Please investigate.
Comment 2 flibby05 2005-09-19 20:27:56 UTC
confirm with pavel janik build m129 on linux
Comment 3 flibby05 2005-09-20 10:43:09 UTC
please also have a look at issue 54624
Comment 4 flibby05 2005-09-20 15:11:11 UTC
lgodard wrote in IRC:
"i guess it is when adding the option filters support (not sure though)"
Comment 5 flibby05 2005-09-20 15:12:15 UTC
*** Issue 54624 has been marked as a duplicate of this issue. ***
Comment 6 joerg.skottke 2005-10-11 12:03:35 UTC
Confirmed. The index is wrong. Both when writing to pdf directly and when using
the pdf settings page.

Reassign to OS, setting OOo 2.0.1 as target as i believe this is a regression.
Comment 7 flibby05 2005-10-12 08:42:43 UTC
>>setting OOo 2.0.1 as target

now correctly set
Comment 8 Oliver Specht 2005-10-12 13:09:23 UTC
Looks like a framework issue to me.
Comment 9 Mathias_Bauer 2005-10-17 11:16:07 UTC
.
Comment 10 thorsten.martens 2005-10-31 14:00:30 UTC
Reassigned

re-open issue and reassign to jsk@openoffice.org
Comment 11 thorsten.martens 2005-10-31 14:00:34 UTC
reassign to jsk@openoffice.org
Comment 12 thorsten.martens 2005-10-31 14:00:38 UTC
reset resolution to FIXED
Comment 13 Mathias_Bauer 2005-10-31 14:05:01 UTC
.

re-open issue and reassign to jsk@openoffice.org
Comment 14 Mathias_Bauer 2005-10-31 14:05:07 UTC
reassign to jsk@openoffice.org
Comment 15 Mathias_Bauer 2005-10-31 14:05:13 UTC
reset resolution to FIXED
Comment 16 thorsten.ziehm 2005-11-01 08:37:18 UTC
re-assigne to msc => please check this task in CWS fwk25, thx

re-open issue and reassign to msc@openoffice.org
Comment 17 thorsten.ziehm 2005-11-01 08:37:22 UTC
reassign to msc@openoffice.org
Comment 18 thorsten.ziehm 2005-11-01 08:37:27 UTC
reset resolution to FIXED
Comment 19 marc.neumann 2005-11-01 08:59:06 UTC
reopen issue because it's not completly fixed in the cws fwk25
Comment 20 marc.neumann 2005-11-01 09:00:56 UTC
Hi,

the wrong index of the array is fixed now, but the option dialog still appears.

reassign back to the developer for fixing this again.

Bye Marc
Comment 21 Mathias_Bauer 2005-11-01 09:07:22 UTC
This is a different issue (and not in the SFX code).
Please don't mix it up with the recorder bug. I recommend to spin off a second
issue and assign it to the application developer(s).
I also don't see the necessity to fix this for 2.0.1. The recording bug is more
general, so it was better fixed in 2.0.1
Comment 22 Mathias_Bauer 2005-11-01 09:07:55 UTC
.

re-open issue and reassign to msc@openoffice.org
Comment 23 Mathias_Bauer 2005-11-01 09:07:59 UTC
reassign to msc@openoffice.org
Comment 24 Mathias_Bauer 2005-11-01 09:08:04 UTC
reset resolution to FIXED
Comment 25 marc.neumann 2005-11-01 09:19:09 UTC
Hi,

> This is a different issue (and not in the SFX code).
> Please don't mix it up with the recorder bug.

I don't mixed up anything. I read the bugdescription and check if the reported
issue is fixed. And no one told me that the dialog is a different issue and not
fixed with this one, I assume that the issue is not fixed. 

So now I know that the dialog is an other issue and only the array is fixed with
this issue.

verified in cws that the array issue is fixed.
Comment 26 Mathias_Bauer 2005-11-01 09:27:17 UTC
reassign to msc@openoffice.org
Comment 27 Mathias_Bauer 2005-11-01 09:27:23 UTC
reset resolution to FIXED
Comment 28 marc.neumann 2005-11-01 10:46:20 UTC
set to verified
Comment 29 Mathias_Bauer 2005-11-11 13:01:35 UTC
*** Issue 57739 has been marked as a duplicate of this issue. ***
Comment 30 marc.neumann 2005-11-15 09:34:53 UTC
Hi,

this is fixed in the current master. The current master is available at
http://download.openoffice.org/680/index.html

I close this issue now.

Bye Marc