Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how do i add a crystal report to a form and allow a user to review it vb .net 2008 sql 2005

Posted on 2011-02-18
3
Medium Priority
?
321 Views
Last Modified: 2012-05-11
I have added a crystal report to a form. But all it does is display and then go away all in 1 or 2 seconds
I need to allow an user to review the report.
I have visual studio 2008
sql 2005
Crystal reports   ver 11


Here is the code I have so far.
code
Private Sub btnCrystalReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCrystalReport.Click
        Dim cryRpt As New ReportDocument
           cryRpt.Load("C:\johnm_work\CentreTrak2008\CrystalReport1.rpt")
        CrystalReportViewer1.ReportSource = cryRpt
           CrystalReportViewer1.Refresh()
/code
0
Comment
Question by:john M
  • 2
3 Comments
 
LVL 101

Assisted Solution

by:mlmcc
mlmcc earned 2000 total points
ID: 34931379
Try deleting the REFRESH line

mlmcc
0
 
LVL 3

Author Comment

by:john M
ID: 34943771
mimcc
Thanks that did work. Just one follow up question.
Do you have the code of a project that uses it or can you give me some suggestions on how to make the report stand out better?  
I added a file with the view of the form. The report looks  pretty sad.
What I show is only a dummy report. Can i put it on its own form and make it look more like microsoft word docuemnt? larger? i give you the points  I  was only wanting  some suggestions
zzz.doc.docx
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 34944031
You can put the report viewer in its own form.  It can be sized to fill the screen,

mlmcc
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question