Solved

FROM COMMANDLINE PRINTING A WORD/EXCEL AND EMAIL DOCUMENT

Posted on 2013-02-04
3
446 Views
Last Modified: 2013-02-07
Using VB6  I need to shell a commandline prompt to print 3 types off documents
without interference off user,  meaning:  enter docu name , enter , and print right away

docu type would be Excel , Word or Outlook Email
0
Comment
Question by:BIAPRO
3 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 38850356
You can launch the prints from VB6 directly. Are you sure that you need to use a command line?
0
 
LVL 7

Accepted Solution

by:
karunamoorthy earned 500 total points
ID: 38850529
I am giving you example for printing WORD document from command line .....


"C:\Program Files\Microsoft Office\Office\WINWORD.EXE" test.rtf /q /n /mFilePrintDefault /mFileExit

The /q option tells Word not to display the splash screen and /n tells it not to load a new default document.

Similarly you can try for excel and others...
Have a nice day!
0
 

Author Comment

by:BIAPRO
ID: 38850571
ok if this "  You can launch the prints from VB6 directly. Are you sure that you need to use a command line?"   is possible , how to ?
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now