Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Wednesday, June 18, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
6/18/2025 8:28:14 AM
slxdeveloper.com Community Forums
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics
(for Windows client only)
. View the
code of conduct
for posting guidelines.
Forums RSS Feed
Back to Forum List
|
Back to SalesLogix Scripting & Customization
|
New Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: Manual Feed printing in Word
Lloy Sanders
Posts: 69
Manual Feed printing in Word
Posted: 17 Apr 07 9:37 AM
I'm having a little problem with Microsoft Word and a VBScript and was wondering if anyone had any insight. Here's the code:
objWord.Selection.Font.Size = 8
objWord.ActiveDocument.PageSetup.TopMargin = 36
objWord.ActiveDocument.PageSetup.BottomMargin = 36
objWord.ActiveDocument.PageSetup.FirstPageTray = 4
objWord.ActiveDocument.PageSetup.OtherPagesTray = 4
objWord.ActiveDocument.SaveAs "C:\Test\Test.doc"
Everything works, except that the page setup is set to the default tray when I open the document. I want it to be a manual feed. I only put in the top and bottom margins because the bottom margin was being set to 0, and when I did a preview I got the error message about the margins being outside of the printable region. Now I do not get that anymore, but still no manual feed. Anyone ever run into anything like this before? Thanks.
Lloy
[
Reply
][
Quote
]
Lloy Sanders
Posts: 69
Re: Manual Feed printing in Word
Posted: 17 Apr 07 1:28 PM
Ok, I used the macro recorder in Word while doing this manually and found out that the you need to use 257 for the tray constants.
objWord.ActiveDocument.PageSetup.FirstPageTray = 257
objWord.ActiveDocument.PageSetup.OtherPagesTray = 257
Don't ask me why this works, but it does. All of the documentation Microsoft provides says 4.
[
Reply
][
Quote
]
Page 1 of 1
You can subscribe to receive a daily forum digest in your
user profile
. View the site
code of conduct
for posting guidelines.
Forum RSS Feed
-
Subscribe to the forum RSS feed to keep on top of the latest forum activity!
slxdeveloper.com is brought to you courtesy of
Ryan Farley
&
Customer FX Corporation
.
This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.
code of conduct
|
page cache (param): 6/18/2025 8:37:39 AM