Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quick Tutorial on CR
Message
General information
Forum:
Crystal Reports
Category:
Other
Miscellaneous
Thread ID:
01289549
Message ID:
01290030
Views:
34
This message has been marked as a message which has helped to the initial question of the thread.
As written in the article:

But wait before running the sample application! If you carefully look at the call to the Load method of the ReportDocument object, you will see that the application is expecting to find a file named rptTest.rpt in the startup folder (usually bin\debug at this time). You can set this path to be anywhere but the point is that you need to copy your standalone report files to that folder! Otherwise, a load report exception will be raised.

>>>Hi everybody,
>>>
>>>Can somebody please recommend a good quick tutorial on CR?
>>>
>>>Thanks in advance.
>>
>>Quick intro:
>>http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx
>
>Hi Eric,
>
>I just tried your demo as is (I unzipped it in CR Demo directory on the C drive) and I got
>
>System.Exception was unhandled
>  Message="Load report failed."
>  InnerException: {"The system cannot find the file specified.
>"}
>  Source="CrystalDecisions.CrystalReports.Engine"
>  StackTrace:
>       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
>       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
>       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
>       at Application.frmDemo.btnViewReport_Click(Object sender, EventArgs e) in C:\CR Demo\Application\frmDemo.vb:line 81
>       at System.Windows.Forms.Control.OnClick(EventArgs e)
>       at System.Windows.Forms.Button.OnClick(EventArgs e)
>       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
>       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
>       at System.Windows.Forms.Control.WndProc(Message& m)
>       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
>       at System.Windows.Forms.Button.WndProc(Message& m)
>       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
>       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
>       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
>       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
>       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
>       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
>       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
>       at System.Windows.Forms.Application.Run(ApplicationContext context)
>       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
>       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
>       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
>       at Application.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
>       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
>       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
>       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
>       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
>       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
>       at System.Threading.ThreadHelper.ThreadStart()
>
>
>Do you have any ideas about this error?
>
>>http://www.emoreau.com/Entries/Articles/2006/10/Crystal-Reports-_e2_80_93-Part-II.aspx
>
>Thanks again.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform