Wrox Programmer Forums
|
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 27th, 2006, 02:39 PM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Vb.net with Crystal Report Viewer

i have created my report in crystal Report 11.
I want my user to view that report by my vb.net application
through a command button.
How should I do that?
What will be code to view the report.
I am using Crystal Report viewer in Microsoft.net Framework 1.0 app.

Here are my code:
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.Shared
Imports System
Imports System.ComponentModel


Private Sub cmdReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdReport.Click
    
        CrystalReportViewer1.ReportSource = C:\ActiveEmp.rpt"
'Here before printing, I want the user to view it.
        CrystalReportViewer1.PrintReport()
    
    End Sub
Any help will greatly appreciated
Thanks,
Sgupta





Similar Threads
Thread Thread Starter Forum Replies Last Post
simple report and crystal report in vb.net saket123 .NET Framework 2.0 0 August 13th, 2008 06:55 AM
Using Crystal in VB 2005 without Report Viewer csdunaway Crystal Reports 6 July 18th, 2007 11:48 AM
Activate Crystal Report ActiveX viewer wchen Classic ASP Professional 0 October 16th, 2006 11:50 AM
Change Crystal Report Viewer header matrix_evo Crystal Reports 0 July 18th, 2006 04:00 AM
Crystal Report (9) Viewer Problem Kaustav VB Components 1 October 30th, 2005 07:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.