ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Google functions / Google Docs
  • Possible conversion formats according to the source format
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Downloads a document from Google Docs.
Example
// Connexion
Cnx is gglConnection
...
IF GglConnect(Cnx) = False THEN
	Error(ErrorInfo())
END
...
tabDoc is array of gglDocument 
tabDoc = GglListDocument(Cnx)
GglGetDocument(Cnx, tabDoc[1], "c:\temp\document.pdf")
Syntax
<Result> = GglGetDocument(<Google connection> , <Document to download> , <Destination path>)
<Result>: Boolean
  • True if the document was retrieved,
  • 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 to download>: gglDocument variable
gglDocument variable corresponding to the document to download.
<Destination path>: Unicode string
Name and full path corresponding to the file to create from the downloaded document. If the extension of the file is specified, the file will be converted into this format when it is downloaded.
The format of source file is kept if the extension is not specified.
Remarks

Possible conversion formats according to the source format

The supported formats depend on the type of the source file. For more details, see Google documentation. For example:
  • The valid formats for a text document are as follows:
    • doc
    • html
    • jpeg
    • odt
    • pdf
    • png
    • rtf
    • txt
    • zip. In this case, the Zip archive contains the images (if necessary) used in the document as well as the HTML files containing the text of the document.
  • The valid formats for the drawings are as follows:
    • jpeg
    • pdf
    • png
    • svg
  • The valid formats for the presentations are as follows:
    • pdf
    • png
    • ppt
    • txt
  • The valid formats for the calculation sheets are as follows:
    • xls
    • csv: only the first worksheet is returned in CSV format.
    • pdf
    • ods
    • tsv: only the first worksheet is returned in TSV format.
    • html
Component: wd300ggl.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help