mgokkaya
02-22-2007, 06:13 AM
How Can I Print The Data In Input Object ???
Here is one way using the File.Print action...
-- Set a variable with the name of your input object
str_MyInputObject = "Input1";
-- Set a variable with the temp location and filename you would like to use
str_TempFile = _TempFolder .. "\\Input.txt";
-- Get the text from you input object to a string
str_InputContents = Input.GetText(str_MyInputObject);
-- If the previous action was successful, write the string to a text file,
-- and print the file to the default printer using the users preferred
-- text editor
num_Error = Application.GetLastError()
if num_Error == 0 then
TextFile.WriteFromString(str_TempFile, str_InputContents, false);
File.Print(str_TempFile);
else
Dialog.Message("Error Getting Text from Input Object",_tblErrorMessages[error]);
end
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.