private void Calibradoimpresion_Load(object sender, EventArgs e) { frm = new Reportes.Calibracion(); frm.Show(); RV = frm.reportViewer1; frm.reportViewer1.RenderingComplete += reportViewer1_RenderingComplete; if (System.IO.File.Exists(path)) { System.IO.StreamReader SR = new System.IO.StreamReader(path); txtMS.Text = separatevaluefromparameter(SR.ReadLine()).ToString(); txtMI.Text = separatevaluefromparameter(SR.ReadLine()).ToString(); SR.Close(); } else { System.IO.File.Create(path).Close(); System.IO.StreamWriter SW = System.IO.File.AppendText(path); SW.WriteLine("MarginTop:0,0"); SW.WriteLine("MarginLeft:0,0"); txtMI.Text = "0,0"; txtMS.Text = "0,0"; SW.Close(); } }
private void Calibradoimpresion_Load(object sender, EventArgs e) { frm = new Reportes.Calibracion(); frm.Show(); RV = frm.reportViewer1; frm.reportViewer1.RenderingComplete += reportViewer1_RenderingComplete; if (System.IO.File.Exists(path)) { System.IO.StreamReader SR = new System.IO.StreamReader(path); txtMS.Text = separatevaluefromparameter( SR.ReadLine()).ToString(); txtMI.Text = separatevaluefromparameter(SR.ReadLine()).ToString(); SR.Close(); } else { System.IO.File.Create(path).Close(); System.IO.StreamWriter SW = System.IO.File.AppendText(path); SW.WriteLine("MarginTop:0,0"); SW.WriteLine("MarginLeft:0,0"); txtMI.Text="0,0"; txtMS.Text = "0,0"; SW.Close(); } }