Skip to Content
0

Crytal Report for Visual Studio 2015 on Windows 10 64 Bit

May 18, 2017 at 08:17 PM

84

avatar image

I have Visual Studio 2015 professional version. I have downloaded and installed Crystal report 13.0.19.2312

When I run my ASP.NET application and try to view report it gives me below error.

Unable to cast object of type 'FileStreamDeleteOnClose' to type 'System.IO.MemoryStream

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Don Williams
May 18, 2017 at 08:18 PM
0

Use Fiddler and/or ProcessMonitor and or Hit F12 in Browsers and see what is generating the error.

Don

Share
10 |10000 characters needed characters left characters exceeded
Pratibha Agashe May 19, 2017 at 01:12 PM
0

Dim report As CrystalDecisions.CrystalReports.Engine.ReportDocument

Dim oStream As System.IO.MemoryStream

report = New CrystalDecisions.CrystalReports.Engine.ReportDocument()

report.FileName = "MyReport.rpt"

report.SetDataSource(TableData)

report.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperLetter

oStream = report.ExportToStream (CrystalDecisions.Shared.ExportFormatType.WordForWindows)

Above line generates error. This line works fine on visual studio 2013 and windows 7 pc.

Share
10 |10000 characters needed characters left characters exceeded