473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Visual Studio 2003 and Crystal Reports

Howdy,

I have a web application that is using Crystal Reports which get converted
to PDF for viewing. Works great on the production server. I have since
installing the app reloaded my development machine and now they don't
display on my machine. I don't get any errors, just a plain white screen.
Its been about 2 years since I worked on this application and now they need
updates and I forget how to view a crystal report as a PDF on my
workstation. Please help!

The script I'm using to convert to PDF is

Dim crReport As New rptCustomerQuote

Dim woid As Integer = Request("WOID")

Dim ds As New DataSet

Dim conn As New SqlConnection(ConnectionString)

Dim adap As New SqlDataAdapter("cp_FrmCustomerQuote", conn)

With adap

..SelectCommand.CommandType = CommandType.StoredProcedure

..SelectCommand.Parameters.Add(New SqlParameter("@WOID", woid))

End With

adap.Fill(ds, "cp_FrmCustomerQuote")

crReport.SetDataSource(ds)

'Change the output stream of the current form

Dim strStream As New
System.IO.BinaryReader(crReport.ExportToStream(Cry stalDecisions.[Shared].ExportFormatType.PortableDocFormat))

Response.ClearContent()

Response.ClearHeaders()

Response.ContentType = "application/pdf"

Response.BinaryWrite(strStream.ReadBytes(strStream .BaseStream.Length))

Response.Flush()

Response.Close()

conn.Close()

Thanks,

David Lozzi
Jan 25 '07 #1
2 1221

http://scottonwriting.net/sowblog/posts/2148.aspx

There is a tibbit there about streaming a Crystal Report To PDF.....


"David Lozzi" <dl****@nospam.nospamwrote in message
news:uR*************@TK2MSFTNGP04.phx.gbl...
Howdy,

I have a web application that is using Crystal Reports which get converted
to PDF for viewing. Works great on the production server. I have since
installing the app reloaded my development machine and now they don't
display on my machine. I don't get any errors, just a plain white screen.
Its been about 2 years since I worked on this application and now they
need
updates and I forget how to view a crystal report as a PDF on my
workstation. Please help!

The script I'm using to convert to PDF is

Dim crReport As New rptCustomerQuote

Dim woid As Integer = Request("WOID")

Dim ds As New DataSet

Dim conn As New SqlConnection(ConnectionString)

Dim adap As New SqlDataAdapter("cp_FrmCustomerQuote", conn)

With adap

.SelectCommand.CommandType = CommandType.StoredProcedure

.SelectCommand.Parameters.Add(New SqlParameter("@WOID", woid))

End With

adap.Fill(ds, "cp_FrmCustomerQuote")

crReport.SetDataSource(ds)

'Change the output stream of the current form

Dim strStream As New
System.IO.BinaryReader(crReport.ExportToStream(Cry stalDecisions.[Shared].Exp
ortFormatType.PortableDocFormat))
>
Response.ClearContent()

Response.ClearHeaders()

Response.ContentType = "application/pdf"

Response.BinaryWrite(strStream.ReadBytes(strStream .BaseStream.Length))

Response.Flush()

Response.Close()

conn.Close()

Thanks,

David Lozzi


Jan 25 '07 #2
Thanks for the link, however I have that part taken care of. Like I said, it
works great on the server but it is not doing anything on my workstation.
"sloan" <sl***@ipass.netwrote in message
news:O1**************@TK2MSFTNGP05.phx.gbl...
>
http://scottonwriting.net/sowblog/posts/2148.aspx

There is a tibbit there about streaming a Crystal Report To PDF.....


"David Lozzi" <dl****@nospam.nospamwrote in message
news:uR*************@TK2MSFTNGP04.phx.gbl...
>Howdy,

I have a web application that is using Crystal Reports which get
converted
to PDF for viewing. Works great on the production server. I have since
installing the app reloaded my development machine and now they don't
display on my machine. I don't get any errors, just a plain white screen.
Its been about 2 years since I worked on this application and now they
need
>updates and I forget how to view a crystal report as a PDF on my
workstation. Please help!

The script I'm using to convert to PDF is

Dim crReport As New rptCustomerQuote

Dim woid As Integer = Request("WOID")

Dim ds As New DataSet

Dim conn As New SqlConnection(ConnectionString)

Dim adap As New SqlDataAdapter("cp_FrmCustomerQuote", conn)

With adap

.SelectCommand.CommandType = CommandType.StoredProcedure

.SelectCommand.Parameters.Add(New SqlParameter("@WOID", woid))

End With

adap.Fill(ds, "cp_FrmCustomerQuote")

crReport.SetDataSource(ds)

'Change the output stream of the current form

Dim strStream As New
System.IO.BinaryReader(crReport.ExportToStream(Cry stalDecisions.[Shared].Exp
ortFormatType.PortableDocFormat))
>>
Response.ClearContent()

Response.ClearHeaders()

Response.ContentType = "application/pdf"

Response.BinaryWrite(strStream.ReadBytes(strStrea m.BaseStream.Length))

Response.Flush()

Response.Close()

conn.Close()

Thanks,

David Lozzi



Jan 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Samuel | last post by:
I'm having a problem with this product. When I was using "Visual Studio.NET 1.0" to develop a project, we had no issues, but now after migrating to "Visual Studio.NET 2003" it does not use the...
1
by: Jon Wang | last post by:
Hi. I have quite a lot of crystal reports created with Crystal Report 8.5. I need to change most of them , and the only tool that I am allowed to use is Visual Studio .Net 2003. However,...
0
by: Jeannette | last post by:
Hi! We currently use SQL Server 2000 Enterprise Edition and Visual Studio.NET 2003. Now, we are comparing the Crystal Reports for Visual Studio.NET 2003 with the SQL Server Reporting Services...
2
by: LCH | last post by:
hi i dunno whether i post this on the right place here is my question : how does the Visual Studio 2003 works together with crystal reports are the license tie together ? let's say i...
0
by: Eric W. Holzapfel | last post by:
Hello Newgroup, I am trying (to no avail so far) to use and display one of the sample crystal reports that is incorporated with Visual Studio .net 2003 (World Sales Report.rpt) - just to get...
1
by: peter.thericgroup | last post by:
People, I am using Visual Studio 2003 v7.1, with framework 1.1 SP1. I also use crystal reports 8.5 to write a lot of my clients reports, and recently upgraded my crystal 8.5 to 9. this however in...
1
by: Kannan | last post by:
Hi, I have noticed that Visual studio 2005 coming along with Crystal report. I have few crystal reports which is developed in 6.0 in my existing VB project and currently we are migrating m y VB...
1
by: Jason Huang | last post by:
Hi, We've been trying working the Crystal Reports XI on our Visual Studio 2003, however, the CR XI doesn't work on our VS2003 at all. So, I am thinking giving up the CR XI. Would someone tell...
0
by: =?Utf-8?B?S2FybCBQb3RoYXN0?= | last post by:
According to this page Crystal Reports for Visual Studio 2005 Service Pack 1 should be released soon. Does anyone know the exact release date for this? ...
4
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.