Originally Posted by
Simbiose
Ok my bad, the image I shared is misleading you, but if you look closely there's these 2 lines:
Application.Printer.Height = 8
Application.Printer.Width = 4.7
These 2 lines of code have the compile error that's shown on the dialog box.
About the labels, it's 1 label per page, the paper size is user defined, because it's a custom size that doesn't show up on the available pre-determined paper sizes.
If you open the page setup of a printer, you'll see a combobox there for papersizes, correct? These are the pre-determined paper sizes are available for printers all over the world, at least that's how I see it.
There's no paper size that has the 8 x 4.7 dimensions or even 4.7 x 8 dimensions, therefor, it's a custom paper size.
At the moment, to test if the report has the right dimensions, I'm opening it in preview and see if any changes I sent through code actually have any effect and so far nothing. This is really annoying...