IEstimate.StoreFileToEstimate Method

Store any file as embedded data in the estimate.
Function StoreFileToEstimate( _ 
ByVal FullPathToFile As String, _ 
Optional ByVal FileId As String = "", _ 
Optional ByVal DisplayName As String = "" _ 
) As String
This language is not supported or no code example is available.
string StoreFileToEstimate( 
string FullPathToFile
string FileId = "", 
string DisplayName = "" 
)
This language is not supported or no code example is available.

Parameters

FullPathToFile
string

The full path to an existing file.

FileId
string

An identifier to the file as retrieved from GetListOfEmbeddedFiles method. Must be an hexadecimal value whose length is 32 characters uppercased. If the Id is not passed or it is an empty string, the file will be added as a new file with a new Id. Otherwise the one with the Id will be replaced.

DisplayName
string

The name you want to display in the list of embedded estimates under QDV. When an empty string, it displays the name of the file.

Return Value

string

A unique ID to stored file.

Exception type Condition

QdvApiException

A problem occurred.

Remarks
 
Avoid storing large files to reduce opening time of estimates.
Version
 
Available since QDV 7.13.0001.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition