Thanks Malcom That is the 'work around' solution I have given to the customer. Of course they dont accept it for the longterm as it means even programmers have to remove all printers if they are going to touch and save a report object that needs specific placing of fields and this is their complaint (and mine...give me a warning or choice to change the margin not just do it without me even knowing) Of course when you involve customer, partner, freelance contractor, MS etc then you can see its not a very partical solution to have everyone removing all their printers ;) Thanks James
James Flavell CITP Singapore Pte Ltd Mobile: +65 97582281 Email: d...@sg.columbusit.com _____ From: development-axapta@yahoogroups.com [mailto:development-axa...@yahoogroups.com] On Behalf Of Malcolm Burtt Sent: 19 March 2009 17:37 To: development-axapta@yahoogroups.com Subject: RE: [development-axapta] Re: Top margin changes by itself 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: development- <mailto:development-axapta%40yahoogroups.com> axa...@yahoogroups.com [mailto:development- <mailto:development-axapta%40yahoogroups.com> axa...@yahoogroups.com] On Behalf Of James Flavell Sent: 19 March 2009 06:00 To: development- <mailto:development-axapta%40yahoogroups.com> axa...@yahoogroups.com 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: development- <mailto:development-axapta%40yahoogroups.com> axa...@yahoogroups.com<mailto:development-axapta%40yahoogroups.com> [mailto:development- <mailto:development-axapta%40yahoogroups.com> axa...@yahoogroups.com<mailto:development-axapta%40yahoogroups.com>] On Behalf Of Karsten Krabbes Sent: 18 March 2009 16:46 To: development- <mailto:development-axapta%40yahoogroups.com> axa...@yahoogroups.com<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> axa...@yahoogroups. <mailto:axapta%40yahoogroups.com> com<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] [Non-text portions of this message have been removed]