Hi all,
I created a program using FP2.6 DOS and has tried to run it under WinXP. This program will output to COMx printer and usually print a two or more pages.
I got a problem here.
In WinXP and Win2K, the printed-character will be printed overlap each other after printing two pages or more. This weird behaviour is also showed up when i print a page twice or more continuously without break (meaning: i didnot wait for printer to stop (clear its buffer) before i print the next page).
I already tried it to run under Win98, and unfortunately, it printed correctly. I cannot use Win98 because i don't have the USB driver (I already googling, but i cannot get the driver anymore, since the motherboard is discontinued product). So I have to use WinXP/2K.
So ... do i miss some critical setting on WinXP/2K, so it make that overlapping behaviour? Or do i make a mistake on my code (sample code view below)? Or do you have any other solution/idea to solve this problem?
Thanks
*************************************************
procedure PrintABuffer
parameter aFileName
file = fopen(aFileName)
set printer to COM1
do while feof(file)
buffer = fread(file, 100)
for cx=1 to len(buffer)
??? mid(buffer,cx,1)
next
enddo
set printer to
=fclose(file)
return
*********************************************
I created a program using FP2.6 DOS and has tried to run it under WinXP. This program will output to COMx printer and usually print a two or more pages.
I got a problem here.
In WinXP and Win2K, the printed-character will be printed overlap each other after printing two pages or more. This weird behaviour is also showed up when i print a page twice or more continuously without break (meaning: i didnot wait for printer to stop (clear its buffer) before i print the next page).
I already tried it to run under Win98, and unfortunately, it printed correctly. I cannot use Win98 because i don't have the USB driver (I already googling, but i cannot get the driver anymore, since the motherboard is discontinued product). So I have to use WinXP/2K.
So ... do i miss some critical setting on WinXP/2K, so it make that overlapping behaviour? Or do i make a mistake on my code (sample code view below)? Or do you have any other solution/idea to solve this problem?
Thanks
*************************************************
procedure PrintABuffer
parameter aFileName
file = fopen(aFileName)
set printer to COM1
do while feof(file)
buffer = fread(file, 100)
for cx=1 to len(buffer)
??? mid(buffer,cx,1)
next
enddo
set printer to
=fclose(file)
return
*********************************************