954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How can I call Crystal Report from VB 6.0 ?

How can I call Crystal Report from VB 6.0 ?

sham
Light Poster
40 posts since Mar 2005
Reputation Points: 10
Solved Threads: 0
 
niXin
Newbie Poster
5 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

if u mean displaying a report on vb this is how u go about it.
Place The crystal report control on the form,
connect it to the report file name

Dim Var as CrystalReport
set Var = CrystalReport1 'setting the variable to the name of the crystal report control
Var.WindowState = crptMaximized 'Maximizing the report to full screen
Var.Action = 1 'displaying the report

pmakanga
Newbie Poster
5 posts since May 2005
Reputation Points: 10
Solved Threads: 0
 

first put a Crystal Report control on your form...then
copy the code to your button click event.


CR1.DiscardSavedData = True
CR1.WindowState = crptMaximized
CR1.ReportFileName = crystal_report_file
CR1.PrintReport


note: CR1 - is the control name for the Crystal Report control i have used.


hope this will help you...good luck.

vhinehds
Light Poster
29 posts since May 2005
Reputation Points: 11
Solved Threads: 0
 

where i found the Crystal Report control in VB.

thanks

vjeshemv2000
Newbie Poster
11 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

On any componend of controls (as button ..), click with righ button and choose componends, then choose crystal report, after that you will find it with others componend (or objects).

for me, i need how to add or delete a line from a report (with VB code).
The report is created, and i need to add some lines, sometimes, i need to delete sometimes. It depend on the user choice.
Can any one help me.
Thanks.

elaek
Newbie Poster
6 posts since May 2007
Reputation Points: 10
Solved Threads: 0
 

how can i put the crystal report control to the form ?

Babeng
Newbie Poster
1 post since Feb 2010
Reputation Points: 10
Solved Threads: 0
 

thank you very much

adhilkmr
Newbie Poster
1 post since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

??? thank you very much??? for?

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You