English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i am making programme in vb6. I want to print all report as fast as DOS. As I thing, it can be possible by txt file.
Pls guide me.

2006-08-23 00:05:00 · 4 answers · asked by selfrely7 1 in Computers & Internet Programming & Design

4 answers

You can use the sentence shell and run some programs like
Shell(pathname[,windowstyle])
nret=Shell(program,vbhide)
Where program may be
notepad.exe /p %1
WINWORD.EXE" /x /n %1
type %1 >>lpt1

And where %1 is the txt file
The another applications print the file. Make sure the paths and names of the application are corrects.

2006-08-23 06:14:00 · answer #1 · answered by Anonymous · 0 0

You can use Printer functions. Eg. Printer.CurrentX = 30 (pixels)
Printer.CurrentY = 752
Printer.Print "Hi"
Printer.EndDoc

The printer prints Hi in the position (30,752) pixels.
Printer.EndDoc is used to end printing.

Like this you can print anything

2006-08-23 00:41:02 · answer #2 · answered by Senthil 3 · 0 0

i ponder whether VB is assuming which you like a CSV document format. have you ever tried putting the easy verbal exchange filter out? CommonDialog1.filter out = "*.TXT" each time I even have labored with information, I even have used the Scripting.FileSystemObject and Scripting.TextStream gadgets. that would desire to be yet another highway to learn, if the above does not artwork.

2016-09-29 21:31:35 · answer #3 · answered by Anonymous · 0 0

selfrely here is your link

http://www.google.co.uk/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=print+text+file+from+visual+basic&spell=1

2006-08-23 00:08:17 · answer #4 · answered by Joe_Young 6 · 0 1

fedest.com, questions and answers