Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, March 28, 2024 
 
View User Profile  

 User Profile - mygush  
mygush


fjrigjwwe9r1SiteUser:UserBio
fiogf49gjkf0d


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
fiogf49gjkf0d

Hi,



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
fiogf49gjkf0d

Hello,


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();
                report.Load("E:\\Saleslogix\\Reports\\DemandeEchDoc.rpt");
                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;
   
                crParameterValues.Clear();
                crParameterValues.Add(crParameterDiscreteValue);
                crParameterFieldDefinition.ApplyCurrentValues(crParameterValues);
               
                CrystalDecisions.Web.CrystalReportViewer crystalReportViewer1 = new CrystalDecisions.Web.CrystalReportViewer();
                crystalReportViewer1.ReportSource = report;
                crystalReportViewer1.RefreshReport();
            }


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
fiogf49gjkf0d


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 © 2024 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/28/2024 8:09:45 AM