Solved

FROM COMMANDLINE PRINTING A WORD/EXCEL AND EMAIL DOCUMENT

Posted on 2013-02-04
3
481 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
A short article about problems I had with the new location API and permissions in Marshmallow
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

737 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