Bug 2828 - PrintDocument.Print on Lion causes a stay on hold until authorization is provided each time
Summary: PrintDocument.Print on Lion causes a stay on hold until authorization is prov...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Drawing ()
Version: 2.10.x
Hardware: Macintosh Mac OS
: Lowest normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-01-10 05:38 UTC by Dimitar Dobrev
Modified: 2012-01-24 08:24 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
A test case (4.44 KB, application/x-zip)
2012-01-10 05:38 UTC, Dimitar Dobrev
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 2828 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Dimitar Dobrev 2012-01-10 05:38:53 UTC
Created attachment 1155 [details]
A test case

Steps to reproduce:
1. Have a printer connected to a Windows network;
2. Add the printer to a mac (through System Preferences -> Print & Fax -> etc.) - this will require a Windows user with his password to be entered once;
3. Run the attached sample with a Mono between 2.10.5 and 2.10.6 included.

Expected results:
An empty page is immediately printed.

Actual results:
The document stays indefinitely in the printing queue with a text "On hold (authentication required)". To print, each time the document must be selected in the printing queue, then clicking "Resume" will show a dialogue for the user and password used when adding the Windows printer and after confirmation printing will complete.


As hinted above, version 2.10.4 and less (excluding, of course, versions that do not work at all on Lion) work fine. I cannot check 2.10.8 because there PrintDocument.Print causes a crash, as described in http://bugzilla.xamarin.com/show_bug.cgi?id=2734.
Comment 1 Miguel de Icaza [MSFT] 2012-01-13 18:55:09 UTC
Currently Windows.Forms on the Mac has no maintainer.

We encourage the community to submit patches to it.
Comment 2 Dimitar Dobrev 2012-01-13 20:54:00 UTC
It's not a Windows Forms application, it's a GTK# one but which uses System.Drawing.Printing. Sorry for not clearing that up initially.
Comment 3 Miguel de Icaza [MSFT] 2012-01-14 15:39:05 UTC
We consider System.Drawing part of the Winforms stack, so we really hope someone in the community looks for the fix and provides a patch.
Comment 4 Dimitar Dobrev 2012-01-24 03:19:41 UTC
Are there alternatives for printing on the mac then? Or do you have a guess where could the problem be? This is a blocker issue for us.
Comment 5 Miguel de Icaza [MSFT] 2012-01-24 08:24:26 UTC
Hello Dimitar,

There are a few options:

* Engage a consultant that can develop/fix the existing code base to ensure that it works and submit the code to us for distribution.

* Use MonoMac's APIs to print.

* Generate a PDF file, and then use Applescript to load the PDF into the Preview program and instruct it to print it.

Miguel