locked
without saving into pdf RRS feed

  • Question

  • User-1232439801 posted
    hi to all..
    i'm trying to print a report without saving the pdf file.. the below code
    MemoryStream oStream; // using System.IO
    oStream = (MemoryStream)
    report.ExportToStream(
    CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
    Response.Clear();
    Response.Buffer= true;
    Response.ContentType = "application/pdf";
    Response.BinaryWrite(oStream.ToArray());
    Response.End();
    the above code works good...
    but there's one problem i want to pass the parameter to the report how can i do this.. please help me...
    Wednesday, October 13, 2010 12:31 AM

Answers

  • User1759999623 posted

    Prior to calling the ExportToStream method, set your parameter values for the ReportDocument object, report.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 13, 2010 10:16 AM