Skip to Content
avatar image
Former Member

Refresh ole link at runtime ?


I have a report in my VS2008 application, in this report i have a linked Word document (aciveX ole object). The word document is modified out of the program. That is working on my computer but at runtime on the customer network when they modify the Word Document, rpt is not updated when they run my application.

How to set/change the link path of the ole object at runtime and refresh report ?

Thanks in advance.


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 05, 2015 at 04:21 PM

    Hi Vincent

    What version of Crystal reports are you using? Please be precise.

    Also, see KBA 1218161 - Linked OLE objects are not updated when previewed in .NET application

    - Ludek

    Senior Support Engineer AGS Product Support, Global Support Center Canada

    Follow me on Twitter

    Add comment
    10|10000 characters needed characters exceeded

    • CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

      CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;

      rptClientDoc = new CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument();

      rpt.Load(rptName.ToString(), OpenReportMethod.OpenReportByTempCopy);

      rptClientDoc = rpt.ReportClientDocument;

      And add all of the RAS assemblies in the References:

      using CrystalDecisions.CrystalReports.Engine;

      using CrystalDecisions.Shared;

      using CrystalDecisions.ReportAppServer;

      using CrystalDecisions.ReportAppServer.ClientDoc;

      using CrystalDecisions.ReportAppServer.Controllers;

      using CrystalDecisions.ReportAppServer.ReportDefModel;

      using CrystalDecisions.ReportAppServer.CommonControls;

      using CrystalDecisions.ReportAppServer.CommLayer;

      using CrystalDecisions.ReportAppServer.CommonObjectModel;

      using CrystalDecisions.ReportAppServer.ObjectFactory;

      using CrystalDecisions.ReportAppServer.Prompting;

      using CrystalDecisions.ReportAppServer.DataSetConversion;

      using CrystalDecisions.ReportAppServer.DataDefModel;

      using CrystalDecisions.ReportSource;

      using CrystalDecisions.Windows.Forms;

      using CrystalDecisions.ReportAppServer.XmlSerialize;