AddData Method

PocketBrowser 3.x API

The AddData Method of the MicroFlash ActiveX Object appends data to the printer buffer of the specified MicroFlash object.

AddData (Method of the MicroFlash ActiveX Object) Syntax

Microflash.AddData(strData);


ParametersW Toggle Parameters

Items listed in this section indicate parameters, or attributes which can be set.

Name Possible Values Description
Default Value
strData String Data to be sent to the printer N/A

Examples Toggle Examples

The following javascript code demonstrates the usage of this method:

<script>
var MicroFlash= new ActiveXObject("PocketBrowser.MicroFlash");

MicroFlash.SetPort('COM1:');
MicroFlash.AddData('Hello');
MicroFlash.AddData(' ');
MicroFlash.AddData('World\n');
MicroFlash.AddLine('From the Motorola PocketBrowser Team');
MicroFlash.Print(10);

alert('printed');
MicroFlash.Clear();
</script>
Copy example to clipboard Copy example to clipboard

Info Toggle Additional Information

Supported Platforms Windows CE, Windows Mobile
Persistence Executes immediately.
Minimum Requirements None.