On Linux (SuSE), there is a vb based program (exe, via WINE) that generates some reports in text format like Notepad or Dos Edit. and the same time it prints the outputs at run time. There is a DMP attached with linux (Server) and no other printers are there. The client is XP and there also the EXE is working. I configured SAMBA for the printer as well as printer on XP. Normal printing is going on, like type filename.txt >prn or lpr -l filename.txt. But when run the program there is no print out. There is a Queue shown in the printer icon. After some work around, I discovered that some ASCII characters are creating problem which is at top of the text file. If I remove them manually and print it, it works fine. But I want to take print at run time coz every time it is not possible to get prints thru manually. Any one can help me how to eliminate these ASCII chars at run time either via XP or Linux. The program i.e. exe is okay and printer is also ok.
Thanks--
Software/Hardware used: Linux / Windows / VB Program / DMP
Thanks Carlosdl, for ur response! I have the source code, but it is so long and big that is not possible to post here. It was developed by our development team. and I asked them regarding this issue, they tested in all respect and according to them and also I checked this code, I did not found any clue / problems. Hope the program is okay, coz this exe runs nearly about 4 yrs simultaneously without giving problems. But if u want only print related code section, I may provide for that. But, it is my doubt, there is something hidden tricks on any one OS like Linux / XP.
Thanks --
Discuss This Question: 2  Replies