Symptom
- SAP Crystal Reports is defaulted to "Scale Report Page to Fit Printer Page"
- Is there a way, using the Crystal Reports APIs for VS .NET, to ubndo this setting?
Environment
- SAP Crystal Reports, developer version for Microsoft Visual Studio
- Microsoft Visual Studio
Resolution
- Use the following code
private void SetPreviewPagesStartWith_Click(object sender, EventArgs e)
{
CrystalDecisions.Shared.PrintLayoutSettings PrintLayout = new CrystalDecisions.Shared.PrintLayoutSettings();
switch (GetPreviewPagesStartwith.Text){
case "Full Size":
PrintLayout.Scaling = PrintLayoutSettings.PrintScaling.DoNotScale;
break;
case "Fit Width":
PrintLayout.Scaling = PrintLayoutSettings.PrintScaling.ShrinkOnly;
break;
case "Fit Page":
PrintLayout.Scaling = PrintLayoutSettings.PrintScaling.Scale;
break;
}
}
Keywords
crvs cr4vs 2012 2010 dot print , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To
Product
SAP Crystal Reports, developer version for Microsoft Visual Studio