Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases 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 June 24th, 2004, 01:31 AM
Authorized User
 
Join Date: May 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to myedu2k4
Default How to Call Crystral Report from VB?

Hi all you guys,
I have one question to ask. I just know that there are two ways to call crystal report from VB but i do not know exectly how. I use Crystal Report viewer in VB but can not create any field in it. And other way if we create a report in CR (Save to a file) and how we call it in VB?
Thanks for ur kind anser....

Pheap

 
Old June 25th, 2004, 05:35 AM
Authorized User
 
Join Date: Apr 2004
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Star your Cystal report Creat one then save as Report1
star your VB Hit the Ctrl+T or choose Project Component from the Project Component menu select Cystal report control It will be on your toolbox Drap it on your form
name its is CrystalReport1
place a command button and write the code as in the command click event
 CrystalReport1.ReportFileName = "E:\TUICOProductCorpProgramming\ReportTotalPUSheet .rpt"
CrystalReport1.RetrieveDataFiles
CrystalReport1.Action = 1







Similar Threads
Thread Thread Starter Forum Replies Last Post
URL call of report LenexaKS Reporting Services 1 December 17th, 2008 08:20 AM
Call VB exe in another vb program Swati Chari BOOK: ASP.NET Website Programming Problem-Design-Solution 1 March 14th, 2008 11:43 AM
to call a crystal report in vb6 Nitin Gour Beginning VB 6 0 November 17th, 2007 08:55 AM
can we call a crystal report from php nageshks PHP How-To 1 December 28th, 2004 09:36 AM
Call VB Exe from VB Program jmss66 VB How-To 5 December 12th, 2004 11:17 AM





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