![]() |
Downloading Files - Printable Version +- Antwise community forums (https://forums.antwise.com) +-- Forum: Antview (https://forums.antwise.com/forumdisplay.php?fid=11) +--- Forum: Antview for Windows (https://forums.antwise.com/forumdisplay.php?fid=12) +--- Thread: Downloading Files (/showthread.php?tid=105) |
Downloading Files - mxmaster926 - 2022-03-28 I've been looking for a control to replace the Microsoft IE-based control. I like what I see here, but I have a question about file downloads. It appears that when you click a link to download a file, it always downloads to the Windows Downloads folder. There is not even any prompt to let the user select something else. My need requires either a way to force downloads to go to a specific folder, or at least to let the user pick and hopefully remember what they picked so it uses that folder by default next time. I do not see any properties available to change these things. Am I missing something? I found this link, which makes me think it is possible to do this: https://stackoverflow.com/questions/67420075/how-to-change-set-the-download-default-location-of-webview-in-c-sharp Also, how would you use properties of the control like Settings from VB6? They just throw an Object Required error. Was just curious if that would have any download related properties behind it. Thanks RE: Downloading Files - wila - 2022-03-28 Hello MxMaster926, Thanks, we like the control too ![]() re. your questions. The download event handling that you correctly point out is indeed missing at the moment. There's a lot of functionality exposed in WebView2. The WebView2 control as provided by Microsoft isn't exactly a fixed target. Microsoft adds new functionality every few weeks. We started out with what we needed for our own customers and have been building out the control over time. Not everything is there yet. The priority on what we are adding is in part based on demand. As such telling us what you think is important to have helps a lot. I will look into adding the DownloadStarting event for the next revision and give you access to an internal version before release. Probably somewhere later this week. The Settings property is of type IUnknown and is basically this class interface: https://docs.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2.settings Almost all of the properties you can set via that interface have already been exposed in the AntView control. -- Wil RE: Downloading Files - mxmaster926 - 2022-03-29 Awesome, thank you! |