>Hi Sergio:
>
>You probably remember I used part of your code to clean printer layout from my reports. I confess I trusted and I didn't check the result of that operation. Today my client declaimed me about the preview option because It shows inproperly the data...
>
Hi Hector
There must have been something else gonne wrong,
I use the same code almost on a daily bases and NEVER had any problem.
It does preserves papersize and orientation while cleans up the rest.
Now for everything to work properly, FRX have to be correct at first place.
Paper size/orientation have to be there.
So please make test with some report;
Create new report with wizard, set up paper size & orientation properly then close report
and then clean it up with function provided in XDIR.
Pls let me know what is remaining afterwards in those rpt fields.
Sergio