bugfix/macOSGraphicsFromHwndSystemNotSupportedException: System.NotSupportedException: Specified method is not supported.#133
Conversation
…otina que substitui Graphics.FromHwnd() do Windows para Graphics.FromImage() no Unix ( macOS, FreeBSD, Linux ) e corrigir o exception ( System.NotSupportedException: Specified method is not supported. ) no metodo MedidasLinha.GetMedidas() em NFe.Danfe.Nativo/GraphicsPrinter/MedidasLinha.cs
db537dc to
c6bc6ab
Compare
|
Caros, segue trace do exception para ajudar no review: Message: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotSupportedException: Specified method is not supported. |
|
O funcionamento no Windows é afetado com sua mudança? Eu referenciei o @robertorp porque ele fez a impressão nativa, se não me engano. Eu não uso esse app nativo, não faço ideia de como funciona. |
|
@marcosgerene não afeta o funcionamento do Windows meu caro 👍 |
|
@marcosgerene obrigado meu caro! 👍 |
Adicionado rotina que substitui Graphics.FromHwnd() do Windows para Graphics.FromImage() no Unix ( macOS, FreeBSD, Linux ) e corrigir o exception ( System.NotSupportedException: Specified method is not supported. ) no metodo MedidasLinha.GetMedidas() em NFe.Danfe.Nativo/GraphicsPrinter/MedidasLinha.cs