FastReport.Net Demo can't use event-Beforprint
HI!
I used FastReport.Net Demo in VS2005-C#, but i have a problem,
when in FastReport.Net i use event-Beforprint, it will work well in FastReport.Net PREVIEW function,
but if i used in C#, it will show system can't find the file.
My program:
report1.Load(\\B004_BUDGET_02.frx");
report1.Preview = previewControl1;
report1.Show();
and in STACK ERROR
Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
æ–¼ System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
æ–¼ System.Signature..ctor(RuntimeFieldHandle fieldHandle, RuntimeTypeHandle declaringTypeHandle)
æ–¼ System.Reflection.RtFieldInfo.get_FieldType()
æ–¼ System.Reflection.RtFieldInfo.GetOneTimeFlags()
æ–¼ System.Reflection.RtFieldInfo.InternalSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean doVisibilityCheck, Boolean doCheckConsistency)
æ–¼ System.Reflection.RtFieldInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
æ–¼ O3ypM5kgCBf6KVulE0.UIrDeferbW4wevEOPS.x0aCEZpDg()
æ–¼ O3ypM5kgCBf6KVulE0.UIrDeferbW4wevEOPS.piwGTbkY2()
æ–¼ FastReport.Report.Fg6Mbnrd6()
æ–¼ FastReport.Report.Prepare(Boolean append)
æ–¼ FastReport.Report.Show()
於 EDU_B004_BUDGET.Form1.button4_Click(Object sender, EventArgs e) 於 C:\Program Files\InfoLight\EEP2006\EDU\EDU_B004_BUDGET\Form1.cs: 行 108
æ–¼ System.Windows.Forms.Control.OnClick(EventArgs e)
æ–¼ System.Windows.Forms.Button.OnClick(EventArgs e)
æ–¼ System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
æ–¼ System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
æ–¼ System.Windows.Forms.Control.WndProc(Message& m)
æ–¼ System.Windows.Forms.ButtonBase.WndProc(Message& m)
æ–¼ System.Windows.Forms.Button.WndProc(Message& m)
æ–¼ System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
æ–¼ System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
æ–¼ System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I used FastReport.Net Demo in VS2005-C#, but i have a problem,
when in FastReport.Net i use event-Beforprint, it will work well in FastReport.Net PREVIEW function,
but if i used in C#, it will show system can't find the file.
My program:
report1.Load(\\B004_BUDGET_02.frx");
report1.Preview = previewControl1;
report1.Show();
and in STACK ERROR
Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle)
æ–¼ System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle, RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle)
æ–¼ System.Signature..ctor(RuntimeFieldHandle fieldHandle, RuntimeTypeHandle declaringTypeHandle)
æ–¼ System.Reflection.RtFieldInfo.get_FieldType()
æ–¼ System.Reflection.RtFieldInfo.GetOneTimeFlags()
æ–¼ System.Reflection.RtFieldInfo.InternalSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean doVisibilityCheck, Boolean doCheckConsistency)
æ–¼ System.Reflection.RtFieldInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
æ–¼ O3ypM5kgCBf6KVulE0.UIrDeferbW4wevEOPS.x0aCEZpDg()
æ–¼ O3ypM5kgCBf6KVulE0.UIrDeferbW4wevEOPS.piwGTbkY2()
æ–¼ FastReport.Report.Fg6Mbnrd6()
æ–¼ FastReport.Report.Prepare(Boolean append)
æ–¼ FastReport.Report.Show()
於 EDU_B004_BUDGET.Form1.button4_Click(Object sender, EventArgs e) 於 C:\Program Files\InfoLight\EEP2006\EDU\EDU_B004_BUDGET\Form1.cs: 行 108
æ–¼ System.Windows.Forms.Control.OnClick(EventArgs e)
æ–¼ System.Windows.Forms.Button.OnClick(EventArgs e)
æ–¼ System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
æ–¼ System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
æ–¼ System.Windows.Forms.Control.WndProc(Message& m)
æ–¼ System.Windows.Forms.ButtonBase.WndProc(Message& m)
æ–¼ System.Windows.Forms.Button.WndProc(Message& m)
æ–¼ System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
æ–¼ System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
æ–¼ System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Comments
Please use full path to the report file, like @d:\MyProgram\myreport.frx. If it won't help, please send me a simple demo with this error to tz@fast-report.com.