Solved! Go to Solution.
private static string GetValue(FrameworkElement frameworkElement) { return frameworkElement == null ? null :( frameworkElement is TextBlock ? (frameworkElement as TextBlock).Text : frameworkElement.ToString()); }
private static string GetValue(FrameworkElement frameworkElement){ return frameworkElement is TextBlock & (frameworkElement != null) ? (frameworkElement as TextBlock).Text : frameworkElement.ToString();}
private static string GetValue(FrameworkElement frameworkElement) { return frameworkElement == null ? null :( frameworkElement is TextBlock ? (frameworkElement as TextBlock).Text : frameworkElement.ToString()); }
private static string GetValue(FrameworkElement frameworkElement) { var textBlock = frameworkElement as TextBlock; if ( textBlock == null ) return null; return textBlock.Text; }
Yes, that did the trick
It allowed me to download the file, but when I open the csv file it displays the following:
File is in a different file format than specified by the extension
[ATTACH=CONFIG]16756[/ATTACH]
Excel has detected that the file is a SYLK file, but cannot load it, either the file has errors or is not in SYLK format
[ATTACH=CONFIG]16757[/ATTACH]
After the above messages, the file opens and looks fine.
Would the errors be caused by the REST service data not being in correct format? The script trying to conform to the csv format? or something else that you may have run into..
Thank you Dominique
I will follow up on thread and give it a try
Thank you