I am trying to saving report in VB by using following code.
Set rReport1 = New CrDailyGroupDetail
rReport1.RecordSelectionFormula = "{recap.recapdate} = #" & Me.DTPicker1.Value & "# and ({recap.recaptimestamp} = 'A' or {recap.recaptimestamp} = 'AM' ) and {recap.grouptype} in ['Motor Carrier', 'Motor Fuel']"
rReport1.txtTimeStamp.SetText "AM"
frmReport1.CRViewer1.ReportSource = rReport1
frmReport1.Caption = "JFK Group Detail"
frmReport1.CRViewer1.ViewReport
frmReport1.WindowState = 2
frmReport1.CRViewer1.Zoom (100)
frmReport1.Show
rReport1.SaveAs "h:\recap_rewrite\JFK Daily Report\JFK DailyGroupDetail" & Date, cr80FileFormat
VB keep giving me invalid directory message (the directory is valided, I checked!) Any clue anybody?
Thanks!
Set rReport1 = New CrDailyGroupDetail
rReport1.RecordSelectionFormula = "{recap.recapdate} = #" & Me.DTPicker1.Value & "# and ({recap.recaptimestamp} = 'A' or {recap.recaptimestamp} = 'AM' ) and {recap.grouptype} in ['Motor Carrier', 'Motor Fuel']"
rReport1.txtTimeStamp.SetText "AM"
frmReport1.CRViewer1.ReportSource = rReport1
frmReport1.Caption = "JFK Group Detail"
frmReport1.CRViewer1.ViewReport
frmReport1.WindowState = 2
frmReport1.CRViewer1.Zoom (100)
frmReport1.Show
rReport1.SaveAs "h:\recap_rewrite\JFK Daily Report\JFK DailyGroupDetail" & Date, cr80FileFormat
VB keep giving me invalid directory message (the directory is valided, I checked!) Any clue anybody?
Thanks!