Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page length problem
Message
 
 
To
11/03/2004 18:53:16
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00885441
Message ID:
00886088
Views:
21
First of all there is no _pagelen system variable, is this something that is used in the code or did you mean _plength? There might be some interaction if there is Xbase calc really using something like _pagelen, so it would be good to know <s>.

Second,your problem is not caused by the mixture of _plength and ??? as long as the ??? is restricted to escape codes (it is, in your sample) and not providing actual output. However if the ??? is done incorrectly so that it *is* providing some output this could be part of your problem.

I am a little concerned about your EJECT statement. You *can* have trouble if you admix EJECTs plus _plength plus escape codes instructing the printer about the page length.

Frankly if there is a page length of exactly 11 inches, IMHO you are going to far too much trouble, you should be able to handle this more simply unless the default page length for the printer is *not* 11 inches <s>. I suppose there might be some problem with the SET PRINTER FONT if the font height is not 6 lines to the inch. What happens if you take out the printer font line?

You ask:

-----------
BTW, the printer manual states that the escape code for setting page length is ESC Cn, where n is the no. of lines per page. Does this mean the sequence in Fox is CHR(27)+'C'+CHR(66), or CHR(27)+'C66'?
------------

The answer is the latter but please ensure that the SPACE(1) is also there if needed preceding the C (I can't tell from what you say is in the manual).

I used to have a wide assortment of printer manuals and escape code sequences available to me <s>. I don't at the moment but I think you could probably find this out by looking in pcodes.dbf (IOW verify the escape codes for some epson printer in the same emulation mode that you're using).

Verify the reset values, etc. Also one thing I'm sort of concerned that you're issuing the draft instruction *before* the reset -- wouldn't you want to do it the other way around?

>L<
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform