Hi,
I have written some reports in CR7 and using VB6 to show the reports. I am using CRPEAuto object to show the report.
the sample code is as follows :-
Set creApp = New CRPEAuto.Application
Set CreRpt = creApp.OpenReport(App.Path & "\DailyRep.rpt"
Set rptDB = CreRpt.Database
Set rptTbls = rptDB.Tables
Set rptTbl = rptTbls.Item(1)
rptTbl.SetLogOnInfo "virtualmssql", "dbsata", "report", "report"
Set creParaFldDefs = CreRpt.ParameterFields
Set crePara = creParaFldDefs.Item(1)
crePara.SetCurrentValue CStr(DTDate.Value)
Set crePara = creParaFldDefs.Item(2)
crePara.SetCurrentValue CmbLocation.Text
CreRpt.Preview
But in the preview window it is not showing the Group Tree. I can't find the way to show the group tree.
Can anyone help me????
Pammi
I have written some reports in CR7 and using VB6 to show the reports. I am using CRPEAuto object to show the report.
the sample code is as follows :-
Set creApp = New CRPEAuto.Application
Set CreRpt = creApp.OpenReport(App.Path & "\DailyRep.rpt"
Set rptDB = CreRpt.Database
Set rptTbls = rptDB.Tables
Set rptTbl = rptTbls.Item(1)
rptTbl.SetLogOnInfo "virtualmssql", "dbsata", "report", "report"
Set creParaFldDefs = CreRpt.ParameterFields
Set crePara = creParaFldDefs.Item(1)
crePara.SetCurrentValue CStr(DTDate.Value)
Set crePara = creParaFldDefs.Item(2)
crePara.SetCurrentValue CmbLocation.Text
CreRpt.Preview
But in the preview window it is not showing the Group Tree. I can't find the way to show the group tree.
Can anyone help me????
Pammi