Skip to content

Vuzit_Document_DownloadUrl

bmatzelle edited this page Sep 13, 2010 · 1 revision

Vuzit_Document DownloadUrl function

Returns the URL for the file for downloading.

Signature

  • public static DownloadUrl(string id, string fileExtension)

Parameters

  • string id : ID of the document to delete.
  • string fileExtension : File extension of the document like “pdf”, “doc”, “ppt”, etc.

Usage Examples

Downloads the Word 2003 version of a document.


string url = Vuzit.Document.DownloadUrl("DOCUMENT_ID", "doc");

Console.WriteLine("<a href=\"" + url + "\">Link to the Word document</a>");

Downloads the PDF version of the same document.


string url = Vuzit.Document.DownloadUrl("DOCUMENT_ID", "pdf");

Console.WriteLine("<a href=\"" + url + "\">Link to the PDF document</a>");