• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 515
  • Last Modified:

FROM COMMANDLINE PRINTING A WORD/EXCEL AND EMAIL DOCUMENT

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
BIAPRO
Asked:
BIAPRO
1 Solution
 
GrahamSkanRetiredCommented:
You can launch the prints from VB6 directly. Are you sure that you need to use a command line?
0
 
karunamoorthyCommented:
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
 
BIAPROAuthor Commented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now