Solved

FROM COMMANDLINE PRINTING A WORD/EXCEL AND EMAIL DOCUMENT

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

919 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

15 Experts available now in Live!

Get 1:1 Help Now