Discussion Locked

DOS base printing from Visual Basic or C

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
hi, I created a report on crystal report and now I want to print this report just like a DOS base print (Foxpro for Dos) from VB6. Tell me how can I do this ? Remember I don't want to a windows base print just like MS-WORD, MS-EXCEL.

2 replies

by umer

Hi
If you want to print your data from DOS using C language, follow this:

Step 1: open the file which contain the report - C command like fopen, open , etc

Step 2: Function fprintf(stdprn,"%s", data_file); - send the output to printer

data_file is a text file you opned before to retrieve your report from it.

Hope it help

This discussion is closed to new replies.