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 7:34AM
    Stark~~thank so much
    u r a great man,It's work...
    thank u so much

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.