Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Converting the web application code in windows form application code
vinayak kulkarni
14y
8.3k
1
Reply
Good morning everybody...
the following code works well in .aspx page that is in
web application..
now the same thing
i want to do in windows form application..
can anybody help me..
The code is for without saving the pdf file take a print..
it works well in .aspx page
ReportDocument cryRpt = new ReportDocument();
cryRpt.Load("E:\\Report1\\over\\CrystalReport1.rpt");
ReportDocument cryRpt = new ReportDocument();
cryRpt.Load("E:\\Report1\\over\\CrystalReport1.rpt");
MemoryStream oStream; // using System.IO
oStream = (MemoryStream)
cryRpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/pdf";
Response.BinaryWrite(oStream.ToArray());
Response.End();
In windows form the Response .clear or response.buffer is not supported
error is missing namespace or directive is displaying...
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
google map
access to page for various user