|
|
|
|
|
- Possible error cases:
- Types of files supported by Google
- Special cases
GglUploadDocument (Function) In french: GglEnvoieDocument Uploads a document to the Google server. Cnt is gglConnection
...
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
ELSE
GglUploadDocument(Cnt, "C:\Docs\file.doc")
END
Syntax
<Result> = GglUploadDocument(<Google connection> , <Document path> [, <Source language> [, <Destination language>]])
<Result>: Boolean - True if the file was successfully uploaded,
- False if a problem occurs. To get more details on the error, use ErrorInfo.
<Google connection>: gglConnection variable Name of the gglConnection variable to be used. This connection was validated by GglConnect. <Document path>: Character string Name and full or relative path of the file (up to 260 characters). A UNC path can be used. <Source language>: Character string Current language of the document. This parameter is used to define the source language for translating the document. This parameter corresponds to the country code in ISO639-1 standard. The list of country codes in ISO639-1 format can be found at the following address: http://www.loc.gov/standards/iso639-2/php/code_list.php If this parameter corresponds to an empty string (""), Google tries to automatically detect the language of the document.
Please note: when using the "Driver" API, this parameter is no longer taken into account. <Destination language>: Character string Language of the document found on the server. This parameter is used to translate the document when uploading the file. This parameter corresponds to the country code in ISO639-1 standard. The list of country codes in ISO639-1 format can be found at the following address: http://www.loc.gov/standards/iso639-2/php/code_list.php.
Please note: when using the "Driver" API, this parameter is no longer taken into account. Remarks Possible error cases: - The Internet connection is not valid.
- The authentication was not performed properly.
- The path of the document does not exist, the format of the document is not supported or the document is too big.
Types of files supported by Google - PowerPoint presentation files (ppt and pps extensions). Size limit: 10 MB.
- HTML, plain text, Word (doc extension), OpenDocument Text (odt extension), RTF, Star Office (sxw extension) files: 500 Kb.
- Files corresponding to spreadsheets (csv, xls and ods extensions): 1 MB.
Special cases - The characteristics of a document found on the Google server are managed via the gglDocument variables. To obtain the characteristics of all documents on a Google server, use function GglListDocument: this function fills an array with variables of type gglDocument.
- The Web interface is used to:
- include a document in a folder.
- give a title to the document.
- mark the documents as "starred".
These elements are not managed through programming in this version.
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|