>On 9/24/2007 12:30:34 PM, scan reg wrote:
>
>Is there a way to send "selection" to the 'printer'
>using the same approach?
>
>I use some very large files and just send one section at a
>time to the 'printer' machinery
Here a macro to play with (only the first command "Reg_Set(105,...." must be customized to your printer.
//
// PrintRaw.vdm Christian Ziemski 2007-09-24
//
// Assuming that the current buffer has an assigned filename
// No error handling yet
//
Reg_Set(105, "f:\xxx\test.txt") // target for "printing" the raw data to
// for example "LPT1:" or "\\printserver\network_printer"
Out_Reg(103) PATHNAME Out_Reg(CLEAR)
if (BB == -1) {
File_Save(NOMSG)
} else {
Reg_Set(103, "|(VEDIT_TEMP)\printraw.tmp")
Block_Save_As(@103, BB, BE)
}
Reg_Set(104, "copy /b ")
Reg_Set(104, @103, APPEND)
Reg_Set(104, " ", APPEND)
Reg_Set(104, @105, APPEND)
Sys("|@(104)", DOS+SIMPLE+SUPPRESS+OK)
Christian