To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=89072
Issue #|89072
Summary|Macro Printing crashes OOo
Component|Word processor
Version|OOo 2.4.0
Platform|PC
URL|
OS/Version|Windows XP
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|printing
Assigned to|mru
Reported by|hakre
------- Additional comments from [EMAIL PROTECTED] Tue May 6 14:53:48 +0000
2008 -------
Dispatching two print commands let OOo do the printing properly. Additionally
it crashes. Somekind of Segfault or such. Here is the Code, calling PrintJob
will lead to the crash:
sub PrintJob
PrintPDF
PrintPaper
end sub
sub PrintPaper
PrintSimple("Brother MFC-240C USB Printer", 2)
end sub
sub PrintPDF
rem ----------------------------------------------------------------------
PrintSimple("PDFCreator", 1)
end sub
sub PrintSimple(printer, copies)
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Printer"
args1(0).Value = printer
dispatcher.executeDispatch(document, ".uno:Printer", "", 0, args1())
rem ----------------------------------------------------------------------
dim args2(1) as new com.sun.star.beans.PropertyValue
args2(0).Name = "Copies"
args2(0).Value = copies
args2(1).Name = "Collate"
args2(1).Value = true
dispatcher.executeDispatch(document, ".uno:Print", "", 0, args2())
end sub
---------------------------------------------------------------------
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]