Hi James If the thing that's causing you the problem is that the import process changes the margin to match the physical limitations of the default printer of the user that did the XPO import, what would happen if you imported the object using an account that has no default printer (or perhaps no printer defined at all). It would probably mean having a domain account used only for doing XPO imports but if that solves your problem it would be a small price to pay.
Malcolm From: [email protected] [mailto:[email protected]] On Behalf Of James Flavell Sent: 19 March 2009 06:00 To: [email protected] Subject: RE: [development-axapta] Re: Top margin changes by itself Thanks Karsten, I would say its somewhat of a bug because yes I agree I could program the report based on knowing the printer but these days this is often not the case. Customers see printers as plug and play etc and to ask them to say which printer in a multi site environment is for sure going to be thrown back from the customer My frustration is that export and import steps change the AOT property so now you have to be sure any person doing such is having the right printer (and the right default windows printer as far as I can tell). In most reports that are just listings its not a big issue but things like cheque printing where exact printing is required then its a real pain to have to make sure the programmer does not have any printer installed on their PC before they can edit and save the object! Going forward I guess the advice is for exact printing report the dev needs to have the driver installed and set as teh default printer when doing anything with such objects... Thanks James _____ From: [email protected]<mailto:development-axapta%40yahoogroups.com> [mailto:[email protected]<mailto:development-axapta%40yahoogroups.com>] On Behalf Of Karsten Krabbes Sent: 18 March 2009 16:46 To: [email protected]<mailto:development-axapta%40yahoogroups.com> Subject: [development-axapta] Re: Top margin changes by itself Hi James, this is not a bug, its a feature :-) You face this problem everywhere in the windows world as the margins always depends on the actual printer driver and also on the hardware !. That means you should alway develop a report with the printer driver you want to use it with. If the positions on the paper are not that important and you use different printers in your company you could just set the property 'fit to page' to yes. Another approach to solve this is to read the actual top margin from the driver and calculate all the positions in the report in run time ... br Karsten --- In development- <mailto:development-axapta%40yahoogroups.com> [email protected]<mailto:axapta%40yahoogroups.com>, "James Flavell" <djf1...@...> wrote: > > Hi everyone > > Just spent most of the day with a strange problem regarding the top margin > property on a design section of a report. The situation is: > > Client PC has no windows printers installed > Using this client set the top margin to 4.2mm in an AX4.0 SP2 report > > Install a pritner on this client PC > Log back into AX and when look at the property it is now 6.27mm and cannot > be changed to be less > (this change happens without any edit of the report object!!!) > > I am guessing that somehow AX tries to be smart and says the minimum top > margin is 6.27mm > Is this some kind of hard coded size? Or does AX AOT reports somehow check > the default windows printer?!!! > > Look forward to hearing from you > > Thanks > James > > > [Non-text portions of this message have been removed] > [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]

