How can winform send String to Fastreoprt?

I want to send string ,WinForm to Fastreport?
But,I can't find how to do?

Ex:
at winFrom
String=' A0001 B0002 C00003'

I want the string display at Fastreport

Plz,tell me how....thank,so much.....

Comments

  • StarkStark Syria
    edited August 2010
    Hi , have a good day

    Please follow these easy steps

    1 - In your Report Designer Add New Parameter from your Data Tree window
    2- Give your Parameter a name , and add it to your report by drag it to report page
    3 - call the code below "From your Windows Application"
                FastReport.Report rpt = new FastReport.Report();
    
                rpt.Load(@"c:\MyReport.frx");
    
                // Call this code After Load the Report 
                rpt.SetParameterValue("MyParam", "Hello From WindowsForm"); // "MyParam" is case sensitive ( or it will not work ) 
                
                rpt.Show();
    

    P.S
    "the Parameter name case is sensitive "



    for more information about how to add new parameter

    you can have a look at my Attachment ,

    or Open the User Manual and search for Creating Parameter
    User Manual


    Hope this help
    r.frx 949B
  • edited 4:16AM
    Stark~~thank so much
    u r a great man,It's work...
    thank u so much

Leave a Comment