ContributionsMost RecentMost LikesSolutionsRe: C# WebBrowser -> WebView2 solution What platform are you building for? .Net Core, WPF or WinForms Mine is WPF based (long story), but I didn't use CoreWebView2InitializationCompleted. namespace DigiwiseDOM { using Microsoft.Web.WebView2.Core; using System; using System.Threading.Tasks; using System.Web; /// <summary> /// Interaction logic for CloudLogin.xaml /// </summary> public partial class CloudLogin : System.Windows.Window { public CloudLogin(string url) { this.InitializeComponent(); Browser.NavigationCompleted += WebBNavigationCompleted; _ = InitializeBrowser(url); } public string GetOAuthCode() { this.ShowDialog(); // The dialog will close once the user has granted access to MYOB and the OAuth code is in the URL // Extract the oAuth code and return it var uri = Browser.Source; var queryParams = HttpUtility.ParseQueryString(uri.Query); var code = queryParams["code"]; Browser.Dispose(); // Prevented an exception that occcurred on exiting the application if we remove this line return code; } private async Task InitializeBrowser(string url) { var userDataFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\DigiwiseQuickExtract"; var env = await CoreWebView2Environment.CreateAsync(null, userDataFolder); await Browser.EnsureCoreWebView2Async(env); Browser.Source = new UriBuilder(url).Uri; } private void WebBNavigationCompleted(object sender, EventArgs e) { var webB = (Microsoft.Web.WebView2.Wpf.WebView2)sender; // Check if OAuth code has been returned and close dialog if it has var uri = webB.Source.ToString(); if (uri.Contains("code=")) { this.Close(); } } } } Re: C# WebBrowser -> WebView2 solution Hi Steve and other developers. This thread was very helpful in getting my solution running again. Thank you for sharing the helpful information! Just a note that I ran into a problem when my app was installed in the Program Files (x86) folder. WebView2 needs to create a user data folder and it can't create that folder under Program Files. The version I am using doesn't give an error message when it can't create the folder - it just didn't display the browser. I found the fix at https://github.com/MicrosoftEdge/WebView2Feedback/issues/297 - there is code there to set the data folder: public BrowserForm(string url = null) { InitializeComponent(); InitializeBrowser(url); } private async void InitializeBrowser(string url = null) { var userDataFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\SoftwareName"; var env = await CoreWebView2Environment.CreateAsync(null, userDataFolder); await webView21.EnsureCoreWebView2Async(env); webView21.Source = new UriBuilder(url ?? Settings.Default.HomePage).Uri; } Hope this helps! Clancy Re: Supplier payment terms report Hi Darren ( NinnessD ) From MYOB's main menu at the top of the screen select File -> Import/Export Assistant. Then choose Export Data, then choose "Cards". Once there you can select the fields suggested by ChrisMYOB . Clancy Re: Supplier payment terms report Hi Darren, Have you tried exporting suppliers to a text file and then opening the text file in Excel? They're are other options like reporting / data extraction add-ons (including one we have developed) that can do this and so much more. However, for one-off or occassional supplier data checks, exporting a text file might be sufficient. Let us know if you would like more information. Regards, Clancy Re: Can you produce one report with Jobs and Categories? Hi Debbie, If you're after a list of transactions with jobs and categories shown you could use a report like Category Transactions and show the job for each transaction by inserting the the job column. See https://help.myob.com/wiki/display/ar/Add+and+remove+report+columns for information on adding columns to a report. If you are looking for a report that groups / totals transactions for each category and job combination then I think you would need to use a custom reporting tool. We have developed MyBI as an easy way to produce custom reports with your MYOB data in Excel. If you would like more information on MyBI please get in touch. Regards, Clancy Re: customising reports Hi Deb, Is this the same query that you have posted about before? If I've missed something different please let me know so that I can provide a customised response. Below is a copy of my response to the other post. From what I understand you are looking for a report that shows all the jobs that have been completed within a date range (e.g. last week) with sales manager and the P & L details for those jobs. You could export the two MYOB reports you have identified (Sales Manager's jobs and Job P&L) to Excel and combine them using Excel formulas. This would require some vlookups and other formulas in Excel and it would be a manual process of exporting the two reports to Excel each time you wanted to get the report. If you would like an automated solution where you can produce the report in Excel simply with a few clicks and zero human error you could use software we have developed. If you would like to discuss this option I can be contacted through my contact information. Re: Sales reporting Hi CBrands, You might be able to use the Account Transactions report to get what you need. You can add the name column to the report to get the customer's name. You might need to export the report to Excel and manipulate it there to get what you are looking for. If you would like a more powerful option that extract practically any report from MYOB straight to Excel with a few clicks, you can me contact me through my contact information. Clancy Regards, Clancy