Webreport - data from memorystream

Hi,I loaded webreport from SQL and save it to the Memorystream. And i need to show data in webreport on webpage(NOT SAVE TO FILE..).

My code:

Webreport webreport=new Webreport();
webreport.Report.RegisterData(ds, "prodejDataSet");
webReport.ReportFile= //This i need to load the Memorystream - stream
webReport.Report.Prepare();
.....

Have you any ideas?

Comments

  • edited October 2015
    lukas wrote: »
    Hi,I loaded webreport from SQL and save it to the Memorystream. And i need to show data in webreport on webpage(NOT SAVE TO FILE..).

    My code:

    Webreport webreport=new Webreport();
    webreport.Report.RegisterData(ds, "prodejDataSet");
    webReport.ReportFile= //This i need to load the Memorystream - stream
    webReport.Report.Prepare();
    .....

    Have you any ideas?
    Hi. RPT is prepared Report from DB.

    MemoryStream ms;

    using (SqlCommand cmd = new SqlCommand("Select RPT from TEMPRPT where IDX=@IDX";, DBcon))
    {
    cmd.Parameters.Add("@IDX";, SqlDbType.Int).Value = IDX;
    var varArray = (Byte[])cmd.ExecuteScalar();
    ms = new MemoryStream(varArray);
    WebReport1.CurrentTab.Report.LoadPrepared(ms);
    WebReport1.ReportDone = true;
    }

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.