From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-09-2006 09:16 PM
02-10-2006 02:24 AM
02-10-2006 11:47 AM
Hallo,
I get the data from a .dat file and read it into a char string, because i do not want all data from the log file to print. otherwise i would use the fileprint methode.
So i use
PrintTextBuffer (Text, ""); to print the texts
the printer does very well- but always when there is something to print it prints the text on the top and gives out the hole sheet.
i can not disable the EJECT_AFTER and wait for a full page, because i need it on time and a secound change in the logfile could occour in an hour od a week.
I think i have to set the printer setups that it does not use A4, but how to do this?? As i told you i tried the ATTR_PRINT_AREA_HEIGHT... but they did not work.
Is there a way for linefeed or formfeed??
A short Information i use a needle printer with endlessly paper.
Thanks for Help Chris
02-10-2006 11:49 AM
can i use something like
0X0D and 0X0A for formfeed and linefeed in the text??
02-10-2006 01:01 PM
02-10-2006 01:18 PM
Thanks
I already have my strings manipulated but not with strcopy, strncopy or strcat... because this will affect that an ascii 0 will stop the copy or cat!!!!!
I found now a way for my print job!
printer = OpenFile ("LPT1", VAL_WRITE_ONLY, VAL_OPEN_AS_IS, VAL_ASCII);
WriteFile (printer, Text, 20);
good old c
and the linefeed
WriteFile (printer, Linefeed, 2);//0x0d0a
CloseFile (printer); // important- otherwise it will not print!
so it prints as soon as there is a new string
but thank you for your tips! Chris