Replies: 2 comments
-
Ok, I just had a crazy idea. I am going to make an inheritable winform in Core that is going to have the events and Property that I need ReportViewer.GetViewerForm() will return a core.Winform instead of a basic Form |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, sounds like you are making lots of progress! Let me know if you need any feedback once you can share some code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good day Gerardo.
I am nearly done in integrating the CrystalReportRunner for our needs.
I event manage to put in place an error handler and bring them back in my main application. It's not perfect since I needed to "Deconstruct" the Exception in string properties and rebuilt and throw it in the main app...
I manage to send the compile file automaticaly in my main app folder instead of coping it myself...
Most of the thing I needed to get back could be sent through form.Load() or form.FormClosed, the exception are managed in the catch(exception).
I needed to modify the ViewerForm to add a button to send by email.
Basicaly, what I did in that button is export the report in a file and save the path and name.
Now, I need a way to trigger an event that could be catch by the pipe like Load or FormClosed.
The problem is nothing that I did in the ReportViewer seems to be accessible from the WinFormReportRunner. (And should not anyway, that's the point of crystalReport in a separate project/app)
My last resort would be to override an unused event of the Form object to use it for my own need.
If there is anyone that know how I could do this I would welcome any hint.
When I am done I am planing to share my exception managing and that event handler too.
Thank for ant help in the meanwhile. :)
Beta Was this translation helpful? Give feedback.
All reactions