Page Setup Dialog issues

SyntaxEditor for Windows Forms Forum

Posted 12 years ago by Marianne
Avatar
If an international display type is chosen the page setup dialog displays in millimiters. If you type in 2,6 for each of the margins and then hit OK and close the dialog. Open the Page Setup dialog again and you'll notice that the margins are now all different. Each time you modify and close the dialog you get different results when reloading it. This does not happen if English is chosen as the display type. (To test this I was using Finnish). Can you reproduce this?

------------------------------- Marianne

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Marianne,

It is probably a bug with the Microsoft code for these features since that is simply what we are calling. Here is our code for the ShowPageSetupForm method:
PageSetupDialog dialog = new PageSetupDialog();
#if !NET11
dialog.EnableMetric = true;
#endif
dialog.Document = printSettings.PrintDocument;
return dialog.ShowDialog(owner);
Note the EnableMetric flag will kick on when using our .NET 2.0 codebase since that wasn't an option in .NET 1.1.

The PrintDocument we retain a reference to is available via editor.PrintSettings.PrintDocument. We don't modify and properties on it and only call built-in .NET dialogs to modify it.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.