We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

upgrade issue for zooming print

Hi,
Upgrade from v3.3.0.0 to v4.4.0.51 in 2003, got compile error:
C:\PMA\STN.PMA.UL\frmDecisionTree.cs(3577): 'Syncfusion.Windows.Forms.Diagram.Model' does not contain a definition for 'PrintData'

for following PrintZooming code.



private void PrintZooming()
{
Syncfusion.Windows.Forms.Diagram.Controls.Diagram activeDiagram = this.diagram;

if (activeDiagram != null)
{
frmPrintZooming dlg = new frmPrintZooming();
float i = activeDiagram.Model.PrintData.PrintingZoom ;//* 100;
dlg.comboBox1.Text = i.ToString() + "%";
dlg.SheetsAcross = activeDiagram.Model.PrintData.SheetsAcross.ToString();
dlg.SheetsDown = activeDiagram.Model.PrintData.SheetsDown.ToString();
if ( activeDiagram.Model.PrintData.UsePrintingZoom )
dlg.radio1.Checked = true;
else
{
dlg.radio2.Checked = true;
}
if ( dlg.ShowDialog() == DialogResult.OK )
{
if ( dlg.radio1.Checked )
{
activeDiagram.Model.PrintData.UsePrintingZoom = true;
activeDiagram.Model.PrintData.PrintingZoom = float.Parse(Regex.Replace(dlg.comboBox1.Text, "%", ""));
}
else
{
activeDiagram.Model.PrintData.UsePrintingZoom = false;
activeDiagram.Model.PrintData.SheetsAcross = int.Parse(dlg.SheetsAcross);
activeDiagram.Model.PrintData.SheetsDown = int.Parse(dlg.SheetsDown);
}
}
}
}


if I change 'activeDiagram.Model.PrintData' to 'activeDiagram.View', then I got following compile errors:
C:\PMA\STN.PMA.UL\frmDecisionTree.cs(3577): 'Syncfusion.Windows.Forms.Diagram.View' does not contain a definition for 'PrintingZoom'
C:\PMA\STN.PMA.UL\frmDecisionTree.cs(3579): 'Syncfusion.Windows.Forms.Diagram.View' does not contain a definition for 'SheetsAcross'
C:\PMA\STN.PMA.UL\frmDecisionTree.cs(3580): 'Syncfusion.Windows.Forms.Diagram.View' does not contain a definition for 'SheetsDown'
C:\PMA\STN.PMA.UL\frmDecisionTree.cs(3581): 'Syncfusion.Windows.Forms.Diagram.View' does not contain a definition for 'UsePrintingZoom'
C:\PMA\STN.PMA.UL\frmDecisionTree.cs(3591): 'Syncfusion.Windows.Forms.Diagram.View' does not contain a definition for 'UsePrintingZoom'
C:\PMA\STN.PMA.UL\frmDecisionTree.cs(3592): 'Syncfusion.Windows.Forms.Diagram.View' does not contain a definition for 'PrintingZoom'
C:\PMA\STN.PMA.UL\frmDecisionTree.cs(3596): 'Syncfusion.Windows.Forms.Diagram.View' does not contain a definition for 'UsePrintingZoom'
C:\PMA\STN.PMA.UL\frmDecisionTree.cs(3597): 'Syncfusion.Windows.Forms.Diagram.View' does not contain a definition for 'SheetsAcross'
C:\PMA\STN.PMA.UL\frmDecisionTree.cs(3598): 'Syncfusion.Windows.Forms.Diagram.View' does not contain a definition for 'SheetsDown'

How or where can I get these method to work as previous V3.3.0.0?
Thanks,

Lan


1 Reply

J. J.Nagarajan Syncfusion Team January 5, 2007 11:12 PM UTC

Hi Lan

We regret for the inconvenience caused. We have made many changes to the SourceCodes of v.4.4.0.51 to make the product more flexible. Please change the code 'activeDiagram.View.PrintZoom' to activeDiagram.Controller.View.PrintZoom. Please refer to the following code snippet and modify this in your application

if ( dlg.radio1.Checked )
{
this.activeDiagram.Controller.View.PrintZoom.UsePrintingZoom=true;
this.activeDiagram.Controller.View.PrintZoom=float.Parse(Regex.Replace(dlg.comboBox1.Text, "%", ""));
}
else
{
this.activeDiagram.Controller.View.PrintZoom.UsePrintingZoom=true;
this.activeDiagram.Controller.View.PrintZoom.SheetsAcross=int.Parse(dlg.SheetsAcross);
this.activeDiagram.Controller.View.PrintZoom.SheetsDown=int.Parse(dlg.SheetsDown);
}

I hope the above code lines will resolve your problem. Please let me know if you have any problem in this version.

Thanks,
Nagaraj

Loader.
Live Chat Icon For mobile
Up arrow icon