What does Windows error code 1903 (ERROR_INVALID_FORM_SIZE) mean?

 
Previous Next
ERROR_INVALID_FORM_NAME ERROR_ALREADY_WAITING

ERROR_INVALID_FORM_SIZE

The printer form dimensions are not acceptable.

ERROR_INVALID_FORM_SIZE is Win32 error 1903 (0x76F). Printer forms describe paper dimensions and the printable imageable rectangle used by spooler and driver operations such as AddForm or SetForm. The status means the size data violates the print subsystem or driver contract, not that the form name is unknown.

Dimension problems that trigger rejection

  • width or height is zero, negative after conversion, or outside the device’s supported range
  • the imageable rectangle lies outside the physical page or has reversed edges
  • the caller supplies pixels, points, inches, or millimetres where thousandths of a millimetre are required
  • 32-bit arithmetic overflows while converting custom media dimensions
  • a driver or print server policy disallows the requested custom form size

Print-form evidence to collect

Record the printer and driver names, server, form name, FORM_INFO_1 width and height, imageable-area coordinates, source unit and conversion formula, driver version, architecture, and whether the form is built-in or custom. Include the device capabilities reported for supported media. Do not log document contents; they are unrelated to validating the form geometry.

Diagnostic sequence

Inspect the exact structure sent to the spooler and verify all values in its documented units. Check that left < right <= width and top < bottom <= height, allowing only the boundary behavior documented by the API and driver. Compare with a form enumerated from the same printer.

Test against the target print server and driver, not only a local generic driver. If a standard size works but the custom size fails, query driver capabilities and administrative restrictions. If the same dimensions succeed when entered through the printer UI, compare the UI-generated form structure with the application output.

Resolution and prevention

Correct unit conversion and geometry, choose a supported medium, or update the driver if it incorrectly rejects a documented size. Remove and recreate a malformed custom form rather than repeatedly submitting the same values.

Applications should use 64-bit intermediate arithmetic, validate the imageable rectangle before calling the spooler, and retain the original engineering unit for diagnostics. Administrators should standardize custom forms on the print server so clients do not create conflicting definitions.

Difference from an invalid form name

ERROR_INVALID_FORM_NAME concerns the form identifier. Error 1903 means the form can be identified but its dimensions or printable geometry are invalid for the operation.

Example

A label application converts 4 inches to 4,000 units instead of 101,600 thousandths of a millimetre and sends a near-zero page to AddForm. The spooler returns 1903. Correcting the conversion and validating the imageable rectangle creates the intended label form.

References


Looking for a different code? Search another status or error code.