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

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 // You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below: // 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 // 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: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyName("")] //[assembly: AssemblyKeyName("")]
[assembly: ComVisibleAttribute(false)] [assembly: ComVisibleAttribute(false)]
[assembly: AssemblyFileVersionAttribute("2.53.0.1")] [assembly: AssemblyFileVersionAttribute("2.53.0.2")]