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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

upgrade issue for zooming print

Thread ID:

Created:

Updated:

Platform:

Replies:

54346 Jan 5,2007 07:56 PM UTC Jan 5,2007 11:12 PM UTC WinForms 1
loading
Tags: Diagram
Lan Mo
Asked On January 5, 2007 07:56 PM UTC

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


J.Nagarajan [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;