Hi!
I have made a custom class for protocol reporting and printing. I set it up in a Windows Forms test project. There I created a DocumentPreview (using MDDDL for future WPF compatibility) and displayed it in a dialog:
Code:
var preview = new DocumentPreview();
preview.Document = DdlReader.DocumentFromString(protocol.GetDocumentDDL());
var previewDialog = new PreviewDialog(preview);
previewDialog.ShowDialog();
It looked great.
Attachment:
migra-01-good.png [ 1.94 KiB | Viewed 12456 times ]
But after moving my protocol classes to an other project, an existing Windows Forms project with a big code base, the preview looked rather bad:
Attachment:
migra-02-bad.png [ 1.98 KiB | Viewed 12456 times ]
Both, test project and the other project are using:
MigraDoc: 1.50.5147 (gdi) from NuGet
Net-Framework: 4.5.2
My custom project for the protocol classes uses:
MigraDoc: 1.50.5147 (no gdi) from NuGet
Net-Framework: 4.5.2
Why is the preview blocky in the 2nd project?
Could it be any mysterious C# setting in the 2nd example that I'm not aware of?