I've just tried running a custom landscape report in dBase 5 for DOS which I created with lots of custom loops, ifs, dos, etc. So this time I did not use CREATE REPORT, MODIFY REPORT, or REPORT FORM. All the printer codes worked except landscape! Even if the only printer code command I give is the one shown below without any other printer codes, it still fails to print landscape. When I went back to my code library, I noticed that all of my prior reports ran landscape successfully but I had always used REPORT FORM. Since I can't use a report form in this case, is there something I'm missing? Why will REPORT FORM do it but not my hand-written custom code using simple "?" and "??" commands (no "@ SAY")? Here's what I've researched so far and I'll post more when and if I determine a successful landscape fix.
??? CHR(27) + "&l#O" && traditional landscape command
(I also tried using ?? instead of ???. No differnece.)
Page Orientation Code # where:
0 = Portrait
1 = Landscape
2 = Reverse Portrait
3 = Reverse Landscape
Additional references I found:
thread290-247779
thread290-2358
thread697-676105 must put different families of printer codes in separate Esc sequences
thread697-677170 HP doc: can fail in mixed OS environment
??? CHR(27) + "&l#O" && traditional landscape command
(I also tried using ?? instead of ???. No differnece.)
Page Orientation Code # where:
0 = Portrait
1 = Landscape
2 = Reverse Portrait
3 = Reverse Landscape
Additional references I found:
thread290-247779
thread290-2358
thread697-676105 must put different families of printer codes in separate Esc sequences
thread697-677170 HP doc: can fail in mixed OS environment