Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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 April 12th, 2006, 02:40 AM
Registered User
 
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default plz help me

Hello

I used the following code to run the crystal report.
error message displayed "User defined Type not defined".

-----------
Dim Appl As New CRAXDRT.Application
Dim Report As New CRAXDRT.Report
Set Report = Appl.OpenReport("d:\Report3.rpt")
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
----------
how can i add Crystal ActiveX Report Viewer Library 10.0
bcoz i cant see it in insertable components

plz help me



 
Old April 16th, 2006, 08:42 AM
Authorized User
 
Join Date: Mar 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Raghunathan
Default

hi,

you have to re-Install the Crystal Reports software properly. along with the software, necessary activeX components will be installed.

Once you've done that, then add the Crystal Reports Control to the form and try the following code

With CrystalReports1
    .ReportFileName = "D:\Report3.rpt"
    .WindowState = crptMaximized
    .ReportTitle = "My Report"
    .PrintReport
End With

Hope this will solve your problem. Do revert back in case any problem occurs



Regards,
Raghu





Similar Threads
Thread Thread Starter Forum Replies Last Post
plz.....plz solve out my problem.... kethireddy435 ASP.NET 1.x and 2.0 Application Design 1 October 4th, 2007 12:56 PM
plz tell me flowertear Pro Visual Basic 2005 2 November 28th, 2006 08:30 PM
Plz help me ritesh_ch23 Pro JSP 1 July 18th, 2006 10:46 PM
Plz plz someone help beetle_jaipur CSS Cascading Style Sheets 3 March 26th, 2006 05:37 AM
Help me plz waqaraziz VB.NET 2002/2003 Basics 1 March 19th, 2005 04:40 PM





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