This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

last record printing multiple time how to stop at last record....

void PrintPreTareReport() { SendDataToVFD(0x01,0,10); DisplayStringOnVFD("Report Tare Wt Y/N?",0x80,10); GetKeyYN(); SendDataToVFD(0x01,0,10); if(Key=='Y' || Key=='y') { PrinterCheck(); if(Key2<10) { PrinterLineFeed(); for(hours=1;hours<=80;hours++){PrintCharacter('-');} PrinterLineFeed(); PrintSpace(5); PrintString("Vehicle"); PrintSpace(8); PrintString("Tare"); PrintSpace(3); PrintString("DATE & Time"); PrintSpace(3); PrinterLineFeed(); for(hours=1;hours<=80;hours++){PrintCharacter('-');} SendDataToVFD(0x01,0,10); for(Number=1201;Number<=Tarebills;Number++) { DisplayStringOnVFD(" Serial No :" ,0x80,10); DisplaySerialNumber(Number); LoadDataInRAMLocationForTareW(); ReadDataFrom1024(511,0); if(dat1==0x81) { PrintSpace(5); PrintRamData(1,12); PrintSpace(2); PrintRamWeight(13); PrintSpace(2); PrintRamDate(16); PrintString(" & "); PrintRamTime(19); PrinterLineFeed(); } } } } }