Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, June 18, 2025 
 
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 ThreadView:  Search:  
 Author  Thread: Manual Feed printing in Word
Lloy Sanders
Posts: 69
 
Manual Feed printing in WordYour last visit to this thread was on 1/1/1970 12:00:00 AM
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 WordYour last visit to this thread was on 1/1/1970 12:00:00 AM
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 | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/18/2025 2:29:51 AM