Print Preview dialog Graphics Settings crashes


Author
Message
v kogut
v kogut
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 3, Visits: 1
Hi All

I have an issue with print preview dialog Graphics Settings,
when I set Compositing Mode to Source Copy and press OK I get the "Parameter is not valid." error

The Call Stack:
at System.Drawing.Graphics.ResetClip()
at Nevron.GraphicsCore.N2DDeviceGDI.set_ClipInfo(lI1l1I1l value)
at Nevron.GraphicsCore.l1ll1I11l.Restore(l1I11ll1 device)
at Nevron.GraphicsCore.l1I11ll1.Restore(Int32 cookie)
at Nevron.Diagram.Extensions.NPrintDocument.OnPrintPage(PrintPageEventArgs e)
at System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at System.Windows.Forms.PrintPreviewControl.ComputePreview()
at System.Windows.Forms.PrintPreviewControl.CalculatePageInfo()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

I'm using the following code for print preview
NPrintManager printManager = new NPrintManager(new NDrawingDocument());
printManager.ShowPrintPreview();

It is reproducible on W7, W2k8 R2, W8

Does anyone know how to fix this?

Thanks
Vasyl
Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Probably GDI+ graphics does not allow ResetClip with SourceCopy compositing during printing.
Anyway we have used another techinque for safe page device printing that should solve this issue. The fix must appear in the next service pack.



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search