473,382 Members | 1,348 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,382 software developers and data experts.

Crystal Reports 2008 with Visual Basic 2008

I am new to visual basic 2008. In the past I have used vb6 to display an existing crystal report. I would like to accomplish the same with vb.net. However I am not clear on the syntax to display a crystal report using the crystal report viewer or crystal report document. Here is my code from vb6

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.     CrystalReport1.Connect = "DSN=perfection;UID=crystal;PWD=crystal"
  3.     CrystalReport1.ReportFileName = "e:\Nittany Work Tickets\Nittany Work Tickets.rpt"
  4.     CrystalReport1.Destination = crptToWindow
  5.     CrystalReport1.WindowState = crptMaximized
  6.     CrystalReport1.Action = 1
  7. End Sub
  8. Private Sub Form_Unload(Cancel As Integer)
  9.   Set frm = Nothing
  10. End Sub
  11.  
And i know we can accomplish it with using Crystal report viewer.the example code is below

Expand|Select|Wrap|Line Numbers
  1. Public Class Form1
  2.     Dim cryRpt As New ReportDocument
  3.     Dim pdfFile As String = "c:\ProductReport1.pdf"
  4.  
  5.     Private Sub Button1_Click(ByVal sender As System.Object, _
  6.     ByVal e As System.EventArgs) Handles Button1.Click
  7.         cryRpt.Load("PUT CRYSTAL REPORT PATH HERE\CrystalReport1.rpt")
  8.         CrystalReportViewer1.ReportSource = cryRpt
  9.         CrystalReportViewer1.Refresh()
  10.     End Sub
  11.  
my question is is there any way we can display the report in vb 2008 with out the use of Crystal report viewer.

If anyone find any idea please replay it..

thanks in advance.

Firoz.
Jul 31 '08 #1
3 3022
Disappointing..................................... ......................................
Jul 31 '08 #2
No one knows it....???
Aug 1 '08 #3
Every one can use there power madly...............if they use their brain........how good our world .......................
Aug 3 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Wendy Elizabeth | last post by:
I would like to know how to print a crystal report that was generated in the ..NET framework using a Visual Basic.NET web application and/or a Visual basic.NET windows application. When crystal...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
11
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can I stop receiving this message while calling a crystal report? "The report you requested requires further information." Thanks
7
by: =?Utf-8?B?VG9kZCBKYXNwZXJz?= | last post by:
Hey Guys, I'm totally flipping out. I developed an application which makes use of the built in Visual Studio 2005 Crystal Reports components. I have references on my solution which state: ...
3
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a...
6
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my...
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:...
1
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings...
0
by: Vajrala Narendra | last post by:
Hi all, TO my .net setup project i want to add a launch condition for crystal report installation. In my prerequisities i selected Crystal reports fro basic visual studio 2008 (x64, x86) in my...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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.