Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports and Visual Basics

Status
Not open for further replies.

rw73

Programmer
Feb 21, 2002
10
US
I know this has to be something simple to fix but I'm just not seeing it. I am creating a simple user interface in VB that allows end-users to print reports that are created using Crystal. Everything works fine until I go into Crystal and turn off the Save Data with Report option for the report. Then all that happens when you click on a command button in VB is the preview window appears for a split second and then is gone. I receive no error message. If I go back into Crystal and turn back on Save Data with Report it works fine again.

Any suggestions?

Thanks in advance.
Rod
 
Too many unknowns.

What version of Crystal are you using?
What Crystal objects are you using?
How are you using those Crystal objects?
What is your code?
Is my assumption that you have VB6 SP6 correct?

zemp
 
Here you go zemp, hope this helps some. It seems like a very simple process and maybe that is why it doesn't function properly.

VB 6
CR 8.5

Just using Crystal Report Control on a form that is opened from a command button. The code for the button is:

Private Sub Command1_Click()

testreport.PrintFileName = "C:\Dims crystal reports|
\Material by Vendor.rpt"
testreport.PrintReport

End Sub

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top