Nevron Forum

Print Manager on Vista 64 Bit

https://www.nevron.com/Forum/Topic2667.aspx

By Ted O'Grady - Friday, October 2, 2009

I am having trouble getting the print manager to work on a 64 bit Vista Machine. Is there something I am doing wrong?

Code:
======
NPrintManager printManager = new NPrintManager(drawingDocument);
printManager.PrintOnSinglePage = true;
printManager.SinglePageLayout = CanvasLayout.Fit;
printManager.Print(true);


Environment
===========

OS: Windows Vista Home Premium SP2. 64 Bit OS.
Nevron Version: Nevron .NET Vision 2009.1 for VS2008 SP4
Development Environment: Visual Studio 2008
.NET Version: Microsoft .NET Framework 3.5 SP1
Printer: Wireless Network printer - Brother 9840 CDW


Observed Behaviour:
===================

1) Printing a document returns false,(e.g. printManager.Print(true); ) printer dialog does not come up. Can't figure out what false means, still haven't found all the documentation.

2) Replicated in Precompiled Nevron Example Application: Does not bring up the printer dialog and fails to print as well
Run: Nevron.Examples.Diagram.WinForm.exe
Try C# Example : Print Manager : Print Preview : Print

3) Running the identical code and example on a Windows XP SP2 32 bit machine (running in a ||'s VM on a Mac) works fine and prints

Workaround:
===========

If the app is compiled to an x86 platform rather than Any CPU printing works fine...

Help:
=====
Is there something I am doing wrong?


Thanks in advance for your help.
By Pavel Vladov - Friday, October 2, 2009

Hello Ted,

We are investigating this problem, I think this is a .NET Framework related issue (it has problems with printing in a 64 bit OS), but you have found the correct workaround (setting the build platform to x86).

Regards,

Pavel