Hi Dimple
You can define a PUBLIC variable and place the ESC-codes in it.
PUBLIC cNyEscCode
cMyEscCode = CHR(27)+"[ 2K" && 16 Cpi on a Canon-printer (I think)
In your report you have to add a textbox in the report header that refers to MyEscCode.
>Hi,
>
>I want to send specific escape sequence to laser printer to activate specific laser check format. These check formats are stored in a card which is already installed in a printer. When I send this sequence from VFP report (form report text box) it doesn't work. Same sequence works fine from DOS EDIT. I tried to send unicode of same sequence but it did not work. I contacted vendor of that card, they suggeted to use Escape API function. I am not sure which API library contains this function and how should I use it. Any Idea? Please suggest.
>
>Thanks
>Dimple
Benn Kjaer
MS Certified Professional - Visual Foxpro
"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"