I have an old Foxpro program that creates an ASCII text file that contains printer control characters. Presently the end users select a default printer from with in the program, this captures an LPT port and I simply copy the text file to the LPT port and it prints. (Basic DOS print) However I have recently been running into a network security issue with certain users that are not able to capture/redirect to the LPT port.
Because I am not a domain admin on this particular network troubleshooting this is difficult....but I thought I would update the program and try to use the Windows interface, like a common dialog box on the form where a user can select their default printer instead of using the LPT capture. However I am running into difficulty for example if I use somthing like the 'TYPE' command to output the file to the printer, it does not recognize the ASCII spaces embedded in the file correctly so nothing on the report lines up...it looks like crap. I am trying to avoid creating a very detailed report template in Foxpro for this...there are just so many fields and tables it would take hours. Is there a way to simply print an ASCII text file with embedded printer control characters from FoxPro using the Windows common dialog or other command? Any feedback would be greatly appreciated. PCELBA....I could use your help on this one.