INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

How can I print from a clipper program from Windows XP?

How can I print from a clipper program from Windows XP?

(OP)
We have a program written in Clipper and I cant get it to print. I am using a USB port for my printer. Anyone out there that can help?

RE: How can I print from a clipper program from Windows XP?

Hi, StephenBig

This link (a bit out of date) is still a good discussion of the overall problem and gives some possible solutions:

http://www.dse.nl/~tmk/clipper/clpwinprint.htm

You can also look into xHarbour, which does have the ability to access windows printers directly, but may require some effort to port your app to that environment.

If I need to stay with Clipper, I usually change the prog to print to a disk file and then shell out to Wordpad to display the report, but that may not be appropriate for your app.

Jock

RE: How can I print from a clipper program from Windows XP?

If you can print to disk, try PrintFile.

www.lerup.com/printfile/

RE: How can I print from a clipper program from Windows XP?

You might try printing to a file.. close it.. Then use NOTEPAD <file> /print

Always prints to the default printer..and uses the last font saved in NOTEPAD..

You can get fancy and use WORDPAD or WORD as well.

Recently I had to generate HTML from the clipper and used WORD to print it out.. the output was fantastic..the time to gen the HTML wasn't too bad as I was able to create an HTML template..change data in the template (with CLIPPER) and send that to WORD to print with a MACRO..  

Almost looks like an integrated system !

RE: How can I print from a clipper program from Windows XP?

Hi,

Share your printer in windows

Make a .bat file:

net use lpt1: \\computername\printershared /persistent:yes
clipperfile.exe (your exe)
net use lpt1: \\computername\printershared /delete

If print slow, regedit HKLM\SYSTEM\CURRENTCONTROLSET\CONTROL\WOW
Key LPT_Timeout=15 (seconds) to LPT_Timeout=1 (second)

Bye,

Luis

RE: How can I print from a clipper program from Windows XP?

I use a program called Dosprn. License (one) costs about 10$ but for 5, 10, ... you get discount. It stays resident and enable you to print to any windows prinetr driver. You can even define new esc/p2 codes and relate to them formating rules. You can translate characters (useful for translation of national chars). www.dosprn.com. Worth looking for. If you add a pdf printer (pdfcreator is free) you can print to pdf and send printouts by e-mail.
good luck

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close