Starting investigation of print (preview) failures.

This commit is contained in:
Ima Mechanique 2013-07-03 22:22:09 +01:00
parent 13667e5a3c
commit 2b0deb49e1
2 changed files with 18 additions and 13 deletions

View file

@ -385,13 +385,13 @@ namespace LSLEditor.Helpers
printmargins = printDoc.DefaultPageSettings.Margins;
// set default fonts
pagenofont = new Font("Tahoma", 8, FontStyle.Regular, GraphicsUnit.Point);
pagenofont = new Font("Tahoma", 10, FontStyle.Regular, GraphicsUnit.Point);
pagenocolor = Color.Black;
titlefont = new Font("Tahoma", 8, FontStyle.Bold, GraphicsUnit.Point);
titlefont = new Font("Tahoma", 10, FontStyle.Bold, GraphicsUnit.Point);
titlecolor = Color.Black;
subtitlefont = new Font("Tahoma", 8, FontStyle.Regular, GraphicsUnit.Point);
subtitlefont = new Font("Tahoma", 10, FontStyle.Regular, GraphicsUnit.Point);
subtitlecolor = Color.Black;
footerfont = new Font("Tahoma", 8, FontStyle.Regular, GraphicsUnit.Point);
footerfont = new Font("Tahoma", 10, FontStyle.Regular, GraphicsUnit.Point);
footercolor = Color.Black;
// set default string formats
@ -460,12 +460,17 @@ namespace LSLEditor.Helpers
pd.AllowPrintToFile = false;
// show print dialog
if (DialogResult.OK == pd.ShowDialog())
DialogResult result = pd.ShowDialog();
if (DialogResult.OK == result)
{
SetupPrint(pd);
PrintPreviewDialog ppdialog = new PrintPreviewDialog();
ppdialog.Document = printDoc;
ppdialog.ShowDialog();
}
else
{
//;
}
}

View file

@ -70,7 +70,7 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("2.53.0.1")]
[assembly: AssemblyVersion("2.53.0.2")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
@ -100,4 +100,4 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyName("")]
[assembly: ComVisibleAttribute(false)]
[assembly: AssemblyFileVersionAttribute("2.53.0.1")]
[assembly: AssemblyFileVersionAttribute("2.53.0.2")]