printer device size on win98

Hi all,
On Win98, the MS WORD will never call my DeviceCapabilities function for DC_MAXEXTENT & DC_MINEXTENT, and it always regard the current paper size(set in devmode) as the max device size my printer support. All size larger than current paper size will cause a hint of out of range. How can i set the actual device size to MSWORD?

Thanks in advance!

Best Regards

hcheng_qi