VB.NET, XML, Crystal Reports, & Refreshing 
Author Message
 VB.NET, XML, Crystal Reports, & Refreshing

Hi-

I have a rather small VB.NET app that receives an XML file from a
remote server.  Places the file into a file on the local machine, and
uses Crystal Reports to read the XML file and generate a report.

Everything works with the exception of the report refreshing.  When
the program runs, the user can enter data that will fetch a brand new
XML file.  At this point I would like to be able to refresh the
report.

I've tried clicking on refresh button, and that doesn't work.  I've
also tried calling the Refresh and RefreshReport methods.  That still
doesn't work.  If I close the application and then re-enter it, the
correct report is shown for the last information entered by the user.
For some reason Crystal Reports isn't going back to the XML file when
it is refreshing.

I am connected to the XML file through ADOplus.  I think that the
recordset is being cached perhaps and that is why the refresh isn't
working.  Is there a way to refresh the cache or disable it?  Any
other possible solutions?  Thanks!

Nick



Thu, 13 Nov 2003 10:01:46 GMT  
 VB.NET, XML, Crystal Reports, & Refreshing
You might want to try with discarding saved data from the CR, before you
show the report.

Report.DiscardSavedData

--
GAZ!!!


Quote:
> Hi-

> I have a rather small VB.NET app that receives an XML file from a
> remote server.  Places the file into a file on the local machine, and
> uses Crystal Reports to read the XML file and generate a report.

> Everything works with the exception of the report refreshing.  When
> the program runs, the user can enter data that will fetch a brand new
> XML file.  At this point I would like to be able to refresh the
> report.

> I've tried clicking on refresh button, and that doesn't work.  I've
> also tried calling the Refresh and RefreshReport methods.  That still
> doesn't work.  If I close the application and then re-enter it, the
> correct report is shown for the last information entered by the user.
> For some reason Crystal Reports isn't going back to the XML file when
> it is refreshing.

> I am connected to the XML file through ADOplus.  I think that the
> recordset is being cached perhaps and that is why the refresh isn't
> working.  Is there a way to refresh the cache or disable it?  Any
> other possible solutions?  Thanks!

> Nick



Fri, 14 Nov 2003 04:44:48 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Crystal Reports 8.5 (VB6) to Crystal Reports NET (VB.NET) conversion

2. VB.net and crystal reports.net Multiple reports

3. vb .net crystal reports not compatible with Crystal Reports 8.5

4. Passing XML to Crystal Reports 9.0 from .NET

5. i am using vb.net and crystal reports for visual studio.net

6. SetDataSource not working with Crystal Reports .NET in VB.NET

7. Error in temp file in running crystal report for .net in vb.net

8. Crystal Reports from ASP.NET without compiling VB.NET on SQL/ADO changes

9. Web Reports (ASP.NET and Crystal Reports for .Net)

10. Linking Crystal Report with a stored Procedure -- crystal report for visual studio.net

11. Crystal Reports 7 && VB 5.0

12. ADO.NET & Crystal Reports

 

 
Powered by phpBB® Forum Software