Home | Forums | Contact | Search | Syndication  
 [login] [create account]   Tuesday, March 21, 2023 
View User Profile  

 User Profile - mygush  


Log in to send this member a message!

 mygush's Contributions
mygush has contributed 3 comments and 0 articles.
Select to view:    
Comment: Re: Creating a Crystal Reports Custom Function Library


I'm really sorry but I did not pay attention that I wasn't on the forum to post this question !!!

If you can, please delete these comments.

Yet once excuse me! Embarassed

Have a good day.

Author: mygush - 7/3/2013

Comment: Re: Creating a Crystal Reports Custom Function Library


Sorry for my blank comment, it's an error.

I wan't to know if it's possible de open à Crystal Report note save in the database SLX but in a repertory on the server as a "CrystalReportViewer" in a .net application. In fact, I wan't to preview and print a report in a click action button on my form. To print the informations of my form, I add a parameter in my report and set the value in my code as this :

Sage.Entity.Interfaces.IRequestSampleDoc rsd = form.CurrentEntity as Sage.Entity.Interfaces.IRequestSampleDoc;<br />            
            if(rsd != null)
                ReportDocument report = new ReportDocument();
                CrystalReportViewer crystalReportViewer1 = new CrystalReportViewer();
                crystalReportViewer1.ReportSource = report;
                report.SetParameterValue("idRequest", rsd.Id);
                ParameterFieldDefinitions crParameterFieldDefinitions ;
                ParameterFieldDefinition crParameterFieldDefinition ;
                ParameterValues crParameterValues = new ParameterValues();
                ParameterDiscreteValue crParameterDiscreteValue = new ParameterDiscreteValue();           
                crParameterDiscreteValue.Value = rsd.Id;
                crParameterFieldDefinitions = report.DataDefinition.ParameterFields;
                crParameterFieldDefinition = crParameterFieldDefinitions["idRequest"];
                crParameterValues = crParameterFieldDefinition.CurrentValues;
                CrystalDecisions.Web.CrystalReportViewer crystalReportViewer1 = new CrystalDecisions.Web.CrystalReportViewer();
                crystalReportViewer1.ReportSource = report;

But my report will not open and I don't have any error that can help me for debug...

Can you help me please ?

Thanks in advance for your response!

Author: mygush - 7/3/2013

Comment: Re: Creating a Crystal Reports Custom Function Library

Author: mygush - 7/3/2013


 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2023 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
page cache (param): 3/21/2023 11:02:34 PM