title: MS Access: custom paper size
body: <p>I am building a MS Access (2010) application and I'll be printing barcode labels from this application. There are a variety of other reports and forms which will also be printed, using the standard printer settings, however with the barcodes I need it to print to a specific printer, and have to set it to use a special page size.</p>
  
  <p>In my searching I have <a href="http://msdn.microsoft.com/en-us/library/ff845524" rel="noreferrer">found the printer object's property</a> "Papersize" which itself has quite a few 'standard' default options including acPRPSLetter for the standard US Letter at 8.5" x 11" and acPRPSA4 for the A4 paper size. None of the preset sizes will work for my use. There is one preset which represents a user custom size, acPRPSUser, but I have not found any way to programmatically <em>set</em> the custom size.</p>
  
  <p>I did read about how there are the '.height' and '.width' properties of the printer, but it does not appear that they exist in the VB used for Access 2010 (I believe it is based on VB6).</p>
  
  <p>Can anyone help me set a custom paper size using VB code in Access 2010?</p>