Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Visual Basic. Not for VB6 questions. Sign in to vote. Thanks in advance. Tuesday, December 4, PM. Can someone give some set of example how can i use result printing examples. Monday, September 26, AM. Monkeyboy 0. La vida loca. Edited by Mr. Monday, September 26, PM. Best Regards, Neda Zhang We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time.
Tuesday, September 27, AM. Object, ByVal e As System. EventArgs Handles Button1. Hidden 'psi. ToString psi. Start psi End Sub La vida loca. Hi, You could try this Free.
LoadFromFile "sample. Count dialogPrint. Count If dialogPrint. OK Then 'Set the pagenumber which you choose as the start page to print doc. FromPage 'Set the pagenumber which you choose as the final page to print doc. CODE Application. Call the print command from send keys this is what I am doing thus far as it is the easiest solution, though it is definitely dirty.
CODE 'Declare a new word application instance. Dim app As New Word. Dim Doc As Word. Open ThePath 'Make the document visible Doc. It must match the caption of the 'Word instance that is open for example, if the caption is 'FaxTemplate. Doc, you must put 'AppActivate "FaxTemplate. This 'prints the current page only because of the 2 shift tabs 'and arrow down.
Hopefully this will help you and anyone else get in the right direction. If you find anything else, please let me know! RE: How to print an external PDF file from a Visual Basic Macro One thing I missed, In the sendkeys, you can put the path in as well and it doesn't matter what the default path Word has in the dialog box, it will save it to that path. This issue is closed, although you may continue posting replies and comments if you choose.
Red Flag This Post Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.
0コメント