IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 2 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New backing up printer forms?
We're migrating our label station to use XP instead of 98. We have a bunch of different sizes of labels that print on tractor feed dot matrix printers.

Under 98 the program can auto-size the page size use by each label size.

The print system is different under XP and the program is not allowed to auto-size. It prints the first row of labels fine, but the printer would "form feed" as if the label were letter size(11" tall), invariably causing multiple rows of labels to be skipped and the next row to print misaligned.

I figured out how to add new "page sizes"(called Forms) to XP. First open START -> SETTINGS -> PRINTERS & FAXES. Then FILE -> SERVER PROPERTIES. Check the CREATE NEW FORM checkbox, give it a name "Label 2.0" and set the width to the max the printer can handle and the height to 2.0. Label 3.5 would have a height of 3.5". There can be multiple label widths per height (ie 1"x2", 1.5"x2", etc) so by setting the width to the max I don't have to create a form for each and every label size, just for each distinct height.

Now that I've created all these forms, everything works fine. However, I'd really like to back up all the forms so I don't have to manually recreate them all in the event the system has to be rebuilt(this is Windows so I figure there's a good chance of that happening). I've checked Microsoft's site and Googled but haven't had any luck.

Any ideas?
Darrell Spice, Jr.                      [link|http://www.spiceware.org/cgi-bin/spa.pl?album=./Artistic%20Overpass|Artistic Overpass]\n[link|http://www.spiceware.org/|SpiceWare] - We don't do Windows, it's too much of a chore
New Found an API
guess I'll write short VB app. [link|http://support.microsoft.com/?id=282474|HOWTO: Print Using Custom Page Sizes on Windows NT and Windows 2000]
FunctionDescription
EnumFormsReturns information about all of the forms that are supported for the current printer.
AddFormAdds a custom form to the system. The data on this form is stored in the registry. Thus, custom forms are available for all printers, not just the printer that was current when the form was added. The numeric value that the system assigns to this form is simply one number higher than the number of forms that EnumForms returns for the current printer. You must have full rights to the driver to call this function. If you cannot add a form manually, this function call also fails for you. For this reason, you usually cannot use this function on network printers.
DeleteFormRemoves a custom form. However, this function does not delete the standard forms that the operating system defines and returns error code 87 if this is attempted. This function also requires the same rights as AddForm.
Darrell Spice, Jr.                      [link|http://www.spiceware.org/cgi-bin/spa.pl?album=./Artistic%20Overpass|Artistic Overpass]\n[link|http://www.spiceware.org/|SpiceWare] - We don't do Windows, it's too much of a chore
New Thought you didn't do Windows? Too much of a chore?
/me runs away giggling.


Peter
[link|http://www.debian.org|Shill For Hire]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Blog]
New SpiceWare doesn't
but porting emulators to OS/2 doesn't pay Darrell Spice's bills.
Darrell Spice, Jr.                      [link|http://www.spiceware.org/cgi-bin/spa.pl?album=./Artistic%20Overpass|Artistic Overpass]\n[link|http://www.spiceware.org/|SpiceWare] - We don't do Windows, it's too much of a chore
     backing up printer forms? - (SpiceWare) - (3)
         Found an API - (SpiceWare)
         Thought you didn't do Windows? Too much of a chore? - (pwhysall) - (1)
             SpiceWare doesn't - (SpiceWare)

+++ATH
59 ms