private static string GetValue(FrameworkElement frameworkElement) { return frameworkElement == null ? null frameworkElement is TextBlock ? (frameworkElement as TextBlock).Text : frameworkElement.ToString()); }
I will follow up on thread and give it a tryThank you
Yes, that did the trickIt 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
private static string GetValue(FrameworkElement frameworkElement) { var textBlock = frameworkElement as TextBlock; if ( textBlock == null ) return null; return textBlock.Text; }
private static string GetValue(FrameworkElement frameworkElement){ return frameworkElement is TextBlock & (frameworkElement != null) ? (frameworkElement as TextBlock).Text : frameworkElement.ToString();}
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.