Discussion Locked

VB6 and Crystal Report 8.5

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

Does anyone know how to pass variables from Crystal reports (main and subreports) to VB6 application and vice versa?

In other words, how could you make VB6 and crystal reports, main and subreports, share the same or a common variable originatingfrom any one of the three sources; main report, subreport or VB6 application.

5 replies

by iweigh

I generally set up globals in a standard module. I then use the crystal embedded report designer on a VB form. Variables are global to the report and VB when PUBLIC is used to dimension the variable.

by nishant.tank

Declaring the variables in Standard Module will help. For passing the variable to crystal report, you can use the reports' code window.

This discussion is closed to new replies.