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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh report from VB (again!)

Status
Not open for further replies.

deetee2k

Programmer
Nov 25, 2000
90
IE
This has been asked here before, but the thread didn't seem to get anywhere...
I'm using the following code to (automagically) export a report to Excel format,

set report=crxApp.OpenReport(rpt_name)
With report
.ExportOptions.FormatType = crEFTExcel80
.ExportOptions.DestinationType = crEDTDiskFile
.ExportOptions.DiskFileName = excel_file.xls
.Export(False)
End With

It works fine (can't get rid of the annoying export progress dialogue but that can be tolerated) except for the fact that I cannot update the report from VB, i.e. no report.refresh method.

Anyone with a greater knowledge of the RDC object model have any ideas? Ta, sorry for asking this again by the way...

D. "I want to play..."
(Guess the episode!)
 
Have you enabled the refresh button on the report viewer??

It looks like a lightening bolt

I haven't done this at all but think there is an "EnableRefreshButton" object in VB

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top