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
310 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 100

Assisted Solution

by:mlmcc
mlmcc earned 500 total points
Comment Utility
Try deleting the REFRESH line

mlmcc
0
 
LVL 3

Author Comment

by:john M
Comment Utility
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 100

Accepted Solution

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

mlmcc
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now