In case it helps explain what I'm trying to do, here's a cleaned up version of a formula parser in a CTP that might be of some use deciphering long formulas as is....but it is just a text box...I'd really like to do more with this using WPF. For example replacing addresses with field names (in cases where you have the same formula copied down a column) perhaps inserting in-line clickable buttons to scroll to precedents. Does anyone have any sample c# DNA file that loads WPF/XAML into CTP (or even a new window for that matter)?.
In case it helps explain what I'm trying to do, here's a cleaned up version of a formula parser in a CTP that might be of some use deciphering long formulas as is....but it is just a text box...I'd really like to do more with this using WPF. For example replacing addresses with field names (in cases where you have the same formula copied down a column) perhaps inserting in-line clickable buttons to scroll to precedents. Does anyone have any sample c# DNA file that loads WPF/XAML into CTP (or even a new window for that matter)?.
--
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 exce...@googlegroups.com.
Visit this group at http://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/groups/opt_out.
Sysmod, thanks for the links. I see some of these parsers may be more than I need, but might not be easily customized. A big advantage of ExcelDNA (besides being free) is that it doesn't require installing anything; a non-administrator can simply modify the dna file as needed and open the xll file.* Same goes for VBA, but VBA doesn't easily do Custom Task Panes (or WPF FlowDocuments) without intervention by ExcelDNA, or VSTO, etc.
I'm interested in more than just formula parsers...for example another idea would be to dump a list of column headers along with the current row's values into a transposed ListView in the CTP. The ability to do this with WPF/XAML is what I hope someone will be able to show me with a C# example.
* I am also curious about what sort of residual temporary files or registry changes, or other footprint comes with using Excel DNA.
I'm still hoping someone can provide some sample DNA file that shows how to load WPF/XAML into a CTP in C#...or tell me I can't do it...but in case anyone is more interested in Excel formula parsing/auditing:
Here is a link with more suggestions: http://www.linkedin.com/groups/Available-free-download-AddIns-track-1724487.S.95809725Of the free ones mentioned, http://www.spreadsheetstudio.com/tools/navigation-tools/ seems best suited for what I do. I just installed on my home computer and works fine (but unfortunately, my employer's IT dept. won't allow installing anything until it goes through the channels...and by that time it will be obsolete). Alternatively, http://www.bestpracticemodelling.com/software/bpmtraverse, is just a xlam file that does alot of the same thing (but doesn't appear to allow you to leave the dialog box and pick other cells, or do the nice "Bracket Forests" and "Interim Results" like spreadsheetstudio's "Formula Explorer"). Perhaps both of these could benefit by optionally applying the attached code for new line breaks and aligning matching parentheses.
I'm still hoping someone can provide some sample DNA file that shows how to load WPF/XAML into a CTP in C#...or tell me I can't do it
--
Sergey, thanks for the encouragement; but I am not able to follow your suggestion. Is this something that can be done by simply editing a text file (similar to running raw c# code including WPF/XAML with Powershell)? Bear in mind that I do not have VSTO (or any access to Visual Studio on my work computer). I do have the free VC# 2010 Express on my home computer, and am willing to download any free extensions, but was hoping to avoid packing extra DLL's into the XLL (like would be needed with the F# example). Please advise and/or provide sample code if possible. I do appreciate your help.
DC, very coooool....thank you very much :).
I was able to build your C# solution with VC# 2010 Express and that gives me the dll which incorporates the wpf/xaml stuff that is then referenced in the dna file.
Is there any way to have the dna file reference (or include) the XAML file directly (rather than via a dll) and build it at run time (like is possible with PowerShell)? That would save me from having go to my home computer just to tweak the xaml and recreate a dll.