You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(ShowMessageQuestion($"Excel needs a component called MSOLAP driver to connect to Power BI. The MSOLAP driver might be missing or not updated on this device. Therefore, Excel might not connect to Power BI. You can install the updated Microsoft MSOLAP driver from this link: {MSOLAP_DRIVER_URL}\n\nClick YES if you want to download the updated MSOLAP driver and install it.\nClick NO to continue without any update.")==MessageBoxResult.Yes)
Copy file name to clipboardExpand all lines: AnalyzeInExcel/ExcelHelper.cs
+47-91Lines changed: 47 additions & 91 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
usingSystem.Windows;
4
4
usingSystem.Windows.Threading;
5
5
usingSystem.Runtime.InteropServices;
6
+
usingExcel=Microsoft.Office.Interop.Excel;
6
7
7
8
namespaceAnalyzeInExcel
8
9
{
@@ -22,105 +23,60 @@ public static bool IsExcelAvailable()
22
23
return(type!=null);
23
24
}
24
25
26
+
/// <summary>
27
+
/// Create a new Excel file with a PivotTable connected to the server/database/cube provided
28
+
/// </summary>
29
+
/// <param name="serverName"></param>
30
+
/// <param name="databaseName"></param>
31
+
/// <param name="cubeName"></param>
32
+
/// <param name="exceptionAction">Action that processes any exception - the function will return false, this is a way to manage logging/telemetry</param>
33
+
/// <returns>true if the operation completes without errors, otherwise false (any exception is removed and the function returns false)</returns>
0 commit comments