Discussion Locked

crystal and vb

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Does anyone know how i can have a form with text boxes, and based on whats entered into the text box generates specific reports in crystal?? Is it possible??
please respond to alleycat@charterpa.net

8 replies

by ckeenan

i believe you have to make the reports in crystal reports first then call them from you vb project.

Private Sub cmdPrint_Click()

dim x as string
x = Text1.Text

CrystalReport1.Destination = crptToWindow
CrystalReport1.ReportFileName = x
CrystalReport1.WindowState = crptMaximized
CrystalReport1.PrintReport

End Sub

by ckeenan

oh, and you need to have an instance of crystal reports on your form. project, components, crystal report control.

by gauravbajaj77

In Crystal Reports you can change the formulas of report by passing it through VB as runtime. For getting specific report you can pass the value entered in textbox to the report in SelectionFormula property.

by sl-campbell

Check out the CR "Help for developer's" help file (installed with the CR program) under "Using the Crystal Data Object", and "When to use the Crystal Data Source Type Library"!. You can also pass a recordset (DAO/ADO) to a external report created using a definition file. For this, check out "Using the Active Data Driver" in the same help file or go on-line to the Crystal Care Technical Support Knowledge Base Articles: c2002281,c2002848,c2003548,c2002748.

This discussion is closed to new replies.