Hi.
I am trying to implement an RTD Server and have the requirement that upon opening the workbook the user will be asked "Do you want to refresh data?" and if the user says "No" the RTD Server should return the values already stored in workbook and now try to populate the workbook with new data.
After some searching I have found several links that state the XLCall.RTD doesn't support initial values, because of the way it registers the RTD with random GUIDs
https://groups.google.com/forum/#!topic/exceldna/rWFj70es5T0
instead its recommended to declare the RTD Server with
[ComVisible(true)]
[Guid("F9DBD653-57E0-4DDD-9474-440340A6C289")]
[ProgId(CommonInfo.RtdServerName)]
[ClassInterface(ClassInterfaceType.None)]
and call the method
ComServer.DllRegisterServer();
XlCall.Excel(XlCall.xlfRtd,
which translates to the excel function =RTD("").
To post to this group, send email to exc...@googlegroups.com.
Visit this group at http://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To post to this group, send email to exc...@googlegroups.com.
Maybe it’s simpler if you store the data in a hidden sheet?
-Govert
To post to this group, send email to exce...@googlegroups.com.
Maybe it’s simpler if you store the data in a hidden sheet?
<DnaLibrary Name="Excel Addin" RuntimeVersion="v4.0" Language="C#">
<Reference Path="WCFLibary.dll" Pack="true" />
<Reference Path="ServerCore.dll" Pack="true" />
<Reference Path="Core.dll" Pack="true" />
<Reference Path="OfficeHelper.dll" Pack="true"/>
<Reference Path="RTDServer.dll" LoadFromBytes="false" Pack="true" ExplicitExports="true" ComServer="true" />
<ExternalLibrary Path="ExcelAddin.dll" LoadFromBytes="false" Pack="true" ExplicitExports="true" />
<!--//rfa 20150608 - make sure to use the none packed version to debug... to avoid the problem with different dlls getting loaded...-->
</DnaLibrary>
Where the RTDServer.dll holds the type to my RTD-Server and ExcelAddin.dll holds the Excel Functions (UDFs).
Could you also provide information what registry keys are invalid for the permanently registered RTD Server today we had the problem that the instance wasn't created in the current addin, had breakpoint in constructor but it didn't fire correctly.
--