Solved

FROM COMMANDLINE PRINTING A WORD/EXCEL AND EMAIL DOCUMENT

Posted on 2013-02-04
3
460 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Advice on Xojo as a development tool over VB. 4 55
Work with App store 7 52
VB.net and sql server 4 36
backup program with robocopy 6 19
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

809 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