To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=73327
                 Issue #|73327
                 Summary|oo hangs when printing multiple documents
               Component|api
                 Version|OOo 2.1
                Platform|All
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|jsc
             Reported by|rpavelic





------- Additional comments from [EMAIL PROTECTED] Wed Jan 10 01:59:31 -0800 
2007 -------
When printing in OO2.1 using .NET and C# if function for printing is called from
another thread while first thread hasn't finished printing OO hangs.

Workaround is to use locking so that only one thread can access the print job,
but this is only localized at application level. I guess OO can still hang if he
gets a job from another application.

Code example:
public bool PrintDocument()
{
    lock (sync)
    {
        try
        {
            XPrintable xPrint = (XPrintable)xTextDocument;
            PropertyValue[] pv = new PropertyValue[1];
            pv[0] = new PropertyValue();
            pv[0].Name = "Wait";
            pv[0].Value = new uno.Any(true);
            xPrint.print(pv);
        }
        catch
        {
            return false;
        }
    }
    return true;
}

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