I used to enjoy printing an envelope (or a bunch of envelopes) using two command buttons on Sesame (one for current record only and the other for retrieved records)
I am unable to get the printer to use the 1st tray which is where my envelopes are:
The printer I'm using is an HP Officejet Pro 8600
When I print from Word, it "magically" knows to go to tray 1 for envelopes and to tray 2 for letter-size paper.
From Sesame I can only get it to go to tray 2 . . . and if I remove tray 2 and force it to go to tray 1, I get an error "mismatch paper size" (or something like that)
Here's the portion of the programming pertaining to the print (it simply follows other programming that checks to see whether the address portion is incomplete, etc)
{
AlternateDefaultPrinter("HP Officejet Pro 8600 - Envelopes")
Newpage(950,412)
PrintString("Spencer Wulwick", 30, 25, 0, "Arial", 14, 0)
PrintString("1901 N Andrews Ave", 30, @PageExtentY(), 0, "Arial", 14, 0)
PrintString("Wilton Manors, FL 33311-3928", 30, @PageExtentY(), 0, "Arial", 14, 0)
PrintString(Name, 450, 200, 0, "BArial", 16, 0)
PrintString(Address1 + " " + Apt, 450, @PageExtentY(), 0, "BArial", 16, 0)
PrintString(City + ", " + State + " " + Zip, 450, @PageExtentY(), 0, "BArial", 16, 0)
FinishPage()
RestoreDefaultPrinter()
}
I checked the programming guide and tried adding the following
PrintPagePaper(Envelope)
PrintPageTray(1)
I've also tried (even though the manual says to use an integer
PrintPageTray(Envelope)
I would appreciate help for 2 reasons.
(1) Ray suggested I use mail merge which I'm very interested in; however, I am having even more difficulty with that and,
(2) even if I did get mail merge working - which I hope I will - it is still more convenient to use the one button to print a single envelope directly from the record, without having to wait for Word to open up (and I'm not sure what else, since I can't get that far).
Thanks!