Settings paper size in template

I am creating a program that includes printing. It now printsto specific printers based on the paper size of the template of thedrawing.

My problem is however, that all of our templates, whether it be A4,A3, A1 etc.. all return swDwgPapersUserDefined for their size, notswDwgPaperA4size, swDwgPaperA3size etc...

Does anyone know how to set the paper size of a template so that itwill actually be recognised as an A4 for our A4 templates, and notas a User Defined?SolidworksDrawings And Detailing