×
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!
  • Students Click Here

*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.

Students Click Here

Jobs

Print from dbase iv in dosbox meg 6 on windows 7 x64

Print from dbase iv in dosbox meg 6 on windows 7 x64

Print from dbase iv in dosbox meg 6 on windows 7 x64

(OP)
I am looking for code for a print batch file to write to a network printer. It will write to a printfile, using printfil 5.2, but only when I exit the dbase programme each time.

RE: Print from dbase iv in dosbox meg 6 on windows 7 x64

(OP)
I am using "Print to file method"

The problem isn't getting it to print, I have to exit DBASE IV before it will write the file for printfil to pick up. I am missing a bit of code that closes the file once the data has been output to file. If I try to delete the file while DBASE is still running it says can't delete file still open in DOSBOX proving that the file has not yet been closed.

RE: Print from dbase iv in dosbox meg 6 on windows 7 x64

Sorry, I was hoping that using the windows print dialogue would make the difference.

I have the same problem with dBase III+ and some Clipper apps, we have to close the cmd or dosbox window to print and also to flush data to disk. Fortunately we have Codlfusion and were able to move all printing processes to the browser, but our 64 bit clients still have to exit to flush their data activity.

Is the print job in the client's print queue? If so, try stopping and starting it.

CODE

run net stop spooler
run net start spooler 

Also, check out this thread

Good luck.

Lyndon

RE: Print from dbase iv in dosbox meg 6 on windows 7 x64

(OP)
No it isn't in the print queue. The file that DBASE outputs to is 0kb until I close DBASE then it changes to 3KB and Printfil grabs it and prints it. I just can't find the command that closes the text file without closing DBASE each time I need to print.

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! Already a Member? Login

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