<p>I'm attempting to use Mono to load a bitmap and print it on Linux but I'm getting an exception.  Does Mono support printing on Linux?  The code/exception are below:</p>

<p><strong>EDIT:</strong> No longer getting the exception, but I'm still curious what kind of support there is.  Leaving the code for posterity or something.</p>

<pre><code>private void btnPrintTest_Click(object sender, EventArgs e)
{
    _printDocTest.DefaultPageSettings.Landscape = true;
    _printDocTest.DefaultPageSettings.Margins = new Margins(50,50,50,50);
    _printDocTest.Print();
}

void _printDocTest_PrintPage(object sender, PrintPageEventArgs e)
{
  var bmp = new Bitmap("test.bmp");

  // Determine center of graph
  var xCenter = e.MarginBounds.X + (e.MarginBounds.Width - bmp.Width) / 2;
  var yCenter = e.MarginBounds.Y + (e.MarginBounds.Height - bmp.Height) / 2;

  e.Graphics.DrawImage(bmp, xCenter, yCenter);

  e.HasMorePages = false;
}
</code></pre>

[{'answer_id': 27459, 'author': 'jfs', 'author_id': 718, 'author_profile': 'https://Stackoverflow.com/users/718', 'pm_score': 4, 'selected': True, 'text': '<p>From the <a href="http://www.mono-project.com/FAQ:_General" rel="noreferrer">Mono docs</a>, I think yes:</p>\n\n<blockquote>\n  <p>Managed.Windows.Forms (aka\n  System.Windows.Forms): A complete and\n  cross platform, System.Drawing based\n  Winforms implementation.</p>\n</blockquote>\n\n<p>It also useful if you run the <a href="http://www.mono-project.com/Moma" rel="noreferrer">Mono Migration Analyzer</a> first.</p>\n'}, {'answer_id': 27460, 'author': 'Espo', 'author_id': 2257, 'author_profile': 'https://Stackoverflow.com/users/2257', 'pm_score': 3, 'selected': False, 'text': '<p><a href="http://www.go-mono.com/archive/1.2/" rel="nofollow noreferrer">According to</a></p>\n\n<p>System.Drawing is now complete, and in addition to being the underlying rendering engine for Windows.Forms, it has also been tested for using third party controls that heavily depend on it.</p>\n'}]
['https://Stackoverflow.com/questions/27455', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/327/']