Released on September 1, 2021
The qdv7:// protocol has been extended to open and create file in a temporary working folder.
Below is the code of an HTML page with such calls.
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Sample links"</title>
</head>
<body>
<p>
<a href="qdv7://">Starts QDV</a><br />
<a href="qdv7://?open=C:\temp\Sample_Estimate.qdv">Open C:\temp\Sample_Estimate.qdv (from UNC)</a><br />
<a href="qdv7://?create=C:\temp\Estimate_Created_2.qdv">Creates C:\temp\Estimate_Created_2.qdv from scratch</a><br />
<a href="qdv7://?createfromtemplate=C:\temp\Estimate_Created_3.qdv|C:\temp\Sample_Estimate.qdv|ABCD1234">Creates C:\temp\Estimate_Created_3.qdv from template C:\temp\Sample_Estimate.qdv with ID=ABCD1234</a><br />
<a href="qdv7://?open=[SHAREPOINT]http://iaes-software.com/temp/Sample_Estimate.qdv">Open directly http://iaes-software.com/temp/Sample_Estimate.qdv (requires SharePoint)</a><br />
<a href="qdv7://?opentotemp=C:\temp\Sample_Estimate.qdv">Open C:\temp\Sample_Estimate.qdv to temporary folder</a><br />
<a href="qdv7://?createtotemp=Estimate_Created_4.qdv">Creates Estimate_Created_4.qdv from scratch into temporary folder</a><br />
<a href="qdv7://?createfromtemplatetotemp=Estimate_Created_5.qdv|C:\temp\Sample_Estimate.qdv|ABCD1234">Creates Estimate_Created_5.qdv to temporary folder from template C:\temp\Sample_Estimate.qdv with ID=ABCD1234</a><br />
</p>
</body>
</html>
The 3 last calls are new and are intended to open, create or create from template into a temporary working folder. This folder is always located in %APPDATA%\Local\QDV\WorkingTemp\
This is useful when you want the user to open estimates in his computer from a remote link. You just have to provide the target file name (not its path). When you use these new calls, hidden and read-only attributes are automatically removed on the copy in the working folder so you can perfectly provide read-only or even hidden estimates as a source.
The use will be able to work on the resulting estimate which is left unprotected in the working folder.
If you want to save such estimate to the initial location, you can place a macro in the On_After_Save event and read the new method Es.PathGotThroughQDV7Protocol() in the API to know where the estimate is opened from.
When you use SharePoint you don’t need this but this is a quick way to avoid SharePoint and manage the saving process by yourself. You can flag the estimates in your own way.