"%ProgramFiles(x86)%\Microsoft Office\Office14\WINWORD.EXE" /mFilePrintDefault "\\whserver02\Public\Printers\RGB HP Deskjet 3000 datetime.docm" "HP testprint.cmd") and edit it for your version of Word, and whatever your test document name is. Word will print the document and then quit.Īs found on other Internet sources, you can now paste this line in a text command file (e.g. To test, use Alt F8 to run the macro FilePrintDefault. Use Alt F11 to open the Visual Basic for Applications environment and insert a new module (NOT a class module). ![]() Open your test document (.docx) and re-save it as a macro-enabled document (.docm). In Trust Center Settings/ActiveX Settings check the box to Trust access to the VBA project object model In Trust Center Settings/Macro Settings check the button to Enable all macros (again, "not recommended") In Trust Center Settings/ActiveX Settings check the box for Safe mode In Trust Center Settings/ActiveX Settings check the button to Enable all controls without restrictions and without prompting (again, even though it's "not recommended") In Trust Center Settings/Trusted Locations check the box to Allow Trusted Locations on my network (even though it's "not recommended") The location of options will change depending on which version of Word you are using, but here's the general idea: Older articles mention a way to start Word, but they imply the functionality to print a document to the default printer is automatically built in it is not. You can even send clean print head command. This will work with print and settings as you wish. Run: Start|All Programs|Accessories|System Tools|Scheduled TasksĬlock Add Schedule Task and follow wizard. Save in the file with cmd extension (make sure you save not as ).ĭouble click to check if it working (should print as you expect) ![]() I used test printer as include colour windows icon and rest of black text.Ĭome back and set Port as it was before (you wrote it down, did you?).Ĭopy C:\YourDirectory\FileYouCreatedWhenPrinting LPT1 ![]() Next time you print anything windows will pop up asking for file name, and you can print what ever you need, moreover printer settings will be included in the file. ![]() Write down where printer ports is assigned now Right click on the printer Properties, next go to cart Ports
0 Comments
Leave a Reply. |