In addition the what Scott said, check PAPERSIZE.
Joe
>I added the following code into my application to clear the printer data from reports that the client can edit. But now the clients are saying that their landscape reports (not sure about portrait, have not had time to thoroughly research and clients are not the most dependable to describe problems) are not formatted correctly. They are still landscape but the page is now shorter than it was before and the last fields are cutting off. What is causing this and how should I fix it? I added the code in case they ever changed network printers the report would still print properly one the new printer. Was my thinking correct?
>
>Brenda
>
>
>
> FOR cnt = 1 TO num
> USE preport_path+(ALLTRIM(a_repo[cnt,1])) IN 0 ALIAS curepo
> SELECT curepo
> cc=MLINE(expr,ATCLINE("ORIENTATION",expr))
> * DELETE AND REPLACE
> REPLACE expr WITH cc
> REPLACE TAG WITH ""
> REPLACE TAG2 WITH ""
> USE IN curepo
> ENDFOR
Joseph C. Kempel
Systems Analyst/Programmer
JNC