I may not be correct with my answer, however I can tell you 
something like this.

If you are sending the PDF file to the client browser, then you 
should use Response.WriteFile(string FileName). The best way to 
address to your question would be to create a PDF file, SEND the 
file and immediately delete the file.

Let me know if this has helped you.

Here is the code:

    CrystalDecisions.Shared.ExportOptions myExportOptions = 
rpt.ExportOptions;
    CrystalDecisions.Shared.DiskFileDestinationOptions 
myDiskFileDestinationOptions = new    
CrystalDecisions.Shared.DiskFileDestinationOptions();
 
    string fName = Server.MapPath("\\")+Session.SessionID.ToString()
+".pdf";
    myDiskFileDestinationOptions.DiskFileName = fName.ToString();
     
    myExportOptions.DestinationOptions = 
myDiskFileDestinationOptions;
    myExportOptions.ExportDestinationType = 
ExportDestinationType.DiskFile;
    myExportOptions.ExportFormatType = 
ExportFormatType.PortableDocFormat;
 
    rpt.Export();
 
    Response.ClearContent();
    Response.ClearHeaders();
    Response.ContentType = "application/pdf";
     
    Response.WriteFile(fName);
    Response.Flush();
    Response.Close();
    
 
    System.IO.File.Delete(fName.ToString());




- Krishna Vemuri.







--- In [email protected], "Parvez Khan" 
<[EMAIL PROTECTED]> wrote:
> Hi friends,
> 
> I want to show crystal report in PDF format without saving it 
either on SERVER or on CLIENT machine.
> 
> Can anyone help me also send me the code for that
> 
> Thanks in Advance
> Parvez
> 
> [Non-text portions of this message have been removed]




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to