To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=62368
                  Issue #:|62368
                  Summary:|Export to PDF does not work from a hidden file.
                Component:|Word processor
                  Version:|OOo 2.0.2
                 Platform:|All
                      URL:|
               OS/Version:|Windows XP
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|save-export
              Assigned to:|mru
              Reported by:|jallan3





------- Additional comments from [EMAIL PROTECTED] Mon Feb 20 18:34:54 -0800 
2006 -------
>From at least 1.1.3 I was able to export from a hidden files. We wrap HTML
around data from a datafile and use automation to insert the temporary HTML
files into Writer, then save as a Writer file and export to PDF for sending to
clients.

For speed and for the elegance the files into which the HMTL is inserted have
been opened (from templates) as hidden files.

These automation routines fail in 2.0.2 RC1 unless the files are no longer
hidden when opened. The error message refers to OLEIDispatch Error code 1001
from Automation bridge: com.sun.star.task.ErrorCodeIOException: ..

When we attempt to export a PDF file from hidden file thrugh a Basic macro the
corresponding error message is:

BASIC runtime error.
An exception occurred
Type: com.sun.star.task.ErrorCodeIOException
Message: .

I have created two simple macros to demonstrate the problem. As written they
require a Writer file C:\Foo.odt which may have any contents. The macros are
identical except for a single parameter.

The marcros follow:

Sub NotHidden
Dim oDoc
Dim Args(0) as New com.sun.star.beans.PropertyValue
Dim Args2(1) as New com.sun.star.beans.PropertyValue
Args(0).Name = "Hidden"
Args(0).Value = False
oDoc = StarDesktop.LoadComponentFromUrl("file:///C:/foo.odt", "_blank", 0, 
Args())
Args2(0).Name = "Overwrite"
Args2(0).Value = True
Args2(1).Name = "FilterName"
Args2(1).Value = "writer_pdf_Export"
oDoc.storeToUrl("file:///C:/foo.pdf", Args2())
oDoc.close(True)
End Sub

Sub Hidden
Dim oDoc
Dim Args(0) as New com.sun.star.beans.PropertyValue
Dim Args2(1) as New com.sun.star.beans.PropertyValue
Args(0).Name = "Hidden"
Args(0).Value = True
oDoc = StarDesktop.LoadComponentFromUrl("file:///C:/foo.odt", "_blank", 0, 
Args())
Args2(0).Name = "Overwrite"
Args2(0).Value = True
Args2(1).Name = "FilterName"
Args2(1).Value = "writer_pdf_Export"
oDoc.storeToUrl("file:///C:/foo.pdf", Args2())
oDoc.close(True)
End Sub

Both macros work on version 2.0.1. But the macro called "Hidden" abends with the
error message provided on version 2.0.2 RC1.
 
Jallan3

---------------------------------------------------------------------
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]

Reply via email to