Click here to Skip to main content
15,884,974 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
Hey,

I try to Print a Grid with calibrun Micro in WPF .Core

I create window to define what i went to print when i click in Print button show me error :"specified method not supported";

Please Help Me;

What I have tried:

PrintDialog printDialog = new PrintDialog();

if (printDialog.ShowDialog() == true)

{printDialog.PrintVisual(Print, "Quittance");}
Posted
Updated 11-May-20 1:39am
v3
Comments
Richard MacCutchan 9-May-20 4:06am    
"when i click in Print button there's error."
You need to correct the error.
lavieautrement 9-May-20 5:04am    
thank you very much for your answer,i forget to make what's the error message .
this error because i use wpf .net core
phil.o 9-May-20 5:19am    
And you still did not provide the exact error message.
lavieautrement 9-May-20 20:13pm    
specified method not supported
Richard MacCutchan 10-May-20 3:55am    
That means the specified method is not supported, so you need to find a different solution.

1 solution

.Net Core is NOT ready for prime time. You shouldn't be using it in enterprise development until they release .Net 5.0, and even then, you should probably wait at least six months while they fix their half-assed code.

If it's possible to mix .Net Core and .Net Framework assemblies in a given application, you could try creating a .Net 4.n framework assembly that implements the print dialog.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900