To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=67064
                 Issue #|67064
                 Summary|OO crashes when a document with header is loaded and p
                        |rinter is set in basic/c++ in 2.0.3
               Component|Word processor
                 Version|OOo 2.0.3
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P1
            Subcomponent|programming
             Assigned to|mru
             Reported by|martho





------- Additional comments from [EMAIL PROTECTED] Thu Jul  6 01:26:39 -0700 
2006 -------
Hello!

I do the following code, once on a document WITH Header and once WITHOUT header.
The code does:
- load a document
- gets a printer
- sets the printer again without changing it
- saving the document

When doing this with a document without header, it works.
When doing this with a document with header, OO crashes!
It does not crash when NOT setting the printer.
It does not crash when NOT saving the document.
The document crashes as well when transfering the code to c++. 
This all worked perfectly in 2.0.2.

oDesktop = createUnoService( "com.sun.star.frame.Desktop" )
Dim mArgs(0) As New com.sun.star.beans.PropertyValue
oDoc = oDesktop.loadComponentFromURL("file:///e:/temp/test_with_header.odt",
"_blank", 0, mArgs())
pvPrinter = oDoc.getPrinter()
oDoc.setPrinter(pvPrinter)

Dim mArgs2(1) As New com.sun.star.beans.PropertyValue
mArgs2(0).Name = "Overwrite"
mArgs2(0).Value = true
oDoc.storeAsURL("file:///e:/temp/test.odt", mArgs2)

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