To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=54702
Issue #:|54702
Summary:|Wrong array indexes in Basic macro when exporting as
|PDF
Component:|Word processor
Version:|OOO 2.0 Beta2
Platform:|All
URL:|
OS/Version:|Linux
Status:|UNCONFIRMED
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|programming
Assigned to:|mru
Reported by:|seimet
------- Additional comments from [EMAIL PROTECTED] Fri Sep 16 06:11:31 -0700
2005 -------
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.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]