I have a program that I developed for generating and printing labels from Excel. The number of labels can vary from 1 label, to a couple hundred labels displayed in the first column of an Excel spreadsheet. Each label can be different, and I wanted to display all of the labels at once on the screen, which is why I chose not to use the built in label features in Word.
The labels are 4" wide x 1" tall and are printed on a Sato label printer.
Currently, the program runs using a custom paper size that I manually setup through Excel. This works well, except when the user decides to edit the size or margins of the custom paper size that I setup.
I would like to have my program create the custom paper size when it runs, to ensure that there are no longer any issues with users manually editing the size for some other purpose.
I'm not sure how to proceed with creating a custom paper size in this manner. I have not found many detailed examples through internet searches. I believe this needs to be performed through the registry, but I'm unfamiliar with editing the registry. Any help would be greatly appreciated.
btmcad
The labels are 4" wide x 1" tall and are printed on a Sato label printer.
Currently, the program runs using a custom paper size that I manually setup through Excel. This works well, except when the user decides to edit the size or margins of the custom paper size that I setup.
I would like to have my program create the custom paper size when it runs, to ensure that there are no longer any issues with users manually editing the size for some other purpose.
I'm not sure how to proceed with creating a custom paper size in this manner. I have not found many detailed examples through internet searches. I believe this needs to be performed through the registry, but I'm unfamiliar with editing the registry. Any help would be greatly appreciated.
btmcad