Method SelectDocumentBlob
- Namespace
- vdWebLibrary
- Assembly
- JsPropertiesExtractor.dll
SelectDocumentBlob(string, string, SelectDocumentFinishedDelegate)
Selectect and load a document through a memory string data. The function is running asynchronously, vdAfterOpenDocument is fired when the selected file is loaded Also from the version 8006.0.3 we can use the ToScriptData and the FromScriptData on the VDF in order to export a document to a string array and send it to WebControl and load it. See more about this procedure here: https://vdraw.com/articles/wish/70001846-export-script-to-memory-string-data-/
public void SelectDocumentBlob(string data, string filename, SelectDocumentFinishedDelegate finishedcallback)
Parameters
datastringA string array that represents a vddocument.
filenamestringAn optional filename.
finishedcallbackSelectDocumentFinishedDelegateA user define function to be called when the procedure finished
Examples
In the example we will call the SelectDocumentBlob method by passing a string data array and a new filename.
var data = "document._d([[95,118,100,68,111,99,117,.............]])"; //the data must be something like this
vdcanvas.SelectDocumentBlob(data, "test.vds");// the data string and a filename which could not be existing.