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
318 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 500 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 100

Accepted Solution

by:
mlmcc earned 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

738 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