HELP: REPORT TO GENERIC TEXT PRINTER 
Author Message
 HELP: REPORT TO GENERIC TEXT PRINTER

I have spent hours trying to print a very simple invoice as a report
to generic printer.  Even when I reduced the number of fields on the
report to bare minimum (see example below), the data simply decides
to fly around all over the report.  I am able to get it to look
decent on the screen but once I send it to the printer, it gets
all messed up and does not resemble anything I see on the screen.

Please help or let me know of a good alternative.  I actually know
of one solution - I have tried to use DBASE 3 for dos to solve
this kind of problem before but it is really my last choice.

Example:

I have a multi-record object in the header portion of the report.
It is linked to a single record invoice table.  The invoice table
is linked to a customer lookup table and all I am trying to print
is the Bill to and ship to customer information as follows:

Bill To # : [customer #]         Ship To # : [customer #]
[customer Name         ]         [Customer Name         ]
[customer Company      ]         [Customer Company      ]
[customer Addr         ]         [customer addr         ]
[customer City][state][zip]      [customer city][state][zip]

Make sure you try leaving the address blank and see what happens.
By adding some box objects to hold the fields in place, I am able
to make it look very close to the above format on the screen.  However
the same report output to the printer hardly resembles anything
close.

I desperately need help on this.

Tony Wong



Sat, 16 Oct 1999 03:00:00 GMT
 HELP: REPORT TO GENERIC TEXT PRINTER

<encoded_portion_removed>
cnkgRml4ZWQgZm9udCBsaWtlIENvdXJpZXIgTmV3IGZvciBhbGwgb2JqZWN0cy4NCg==



Mon, 18 Oct 1999 03:00:00 GMT
 HELP: REPORT TO GENERIC TEXT PRINTER

Tony

I tried something similar ( ie generic printer )  & gave it away.

Checkout the textstream methods.
      & string.format...
  simple
  works
  use a bit of Opal

  work out your own formats

  opal something like

  someInv =true
  invno = 0
  while someInv
        inv= tcInvoice.invno
        if inv <> inv then
                ; lookup billto, ship to
                if tcBillTo.qlocate( tcInvoice.CustNo) then
                         btName = tcBillTo."'name"
                         ....
                endif

               if tcShipTo.qlocate( tcInvoice.CustNo) then
                         stName = tcShipTo."'name"
                         ....
                endif

                ts.writeline("this is the invoice heading line")
                tc.commit()
                ts.writeline("bill to" + format(btname) + space(30) +
...  
   endwhile

HTH

Ian

Quote:
>I have spent hours trying to print a very simple invoice as a report
>to generic printer.  Even when I reduced the number of fields on the
>report to bare minimum (see example below), the data simply decides
>to fly around all over the report.  I am able to get it to look
>decent on the screen but once I send it to the printer, it gets
>all messed up and does not resemble anything I see on the screen.

>Please help or let me know of a good alternative.  I actually know
>of one solution - I have tried to use DBASE 3 for dos to solve
>this kind of problem before but it is really my last choice.

>Example:

>I have a multi-record object in the header portion of the report.
>It is linked to a single record invoice table.  The invoice table
>is linked to a customer lookup table and all I am trying to print
>is the Bill to and ship to customer information as follows:

>Bill To # : [customer #]         Ship To # : [customer #]
>[customer Name         ]     [Customer Name         ]
>[customer Company      ]         [Customer Company      ]
>[customer Addr         ]         [customer addr         ]
>[customer City][state][zip]      [customer city][state][zip]

>Make sure you try leaving the address blank and see what happens.
>By adding some box objects to hold the fields in place, I am able
>to make it look very close to the above format on the screen.  However
>the same report output to the printer hardly resembles anything
>close.

>I desperately need help on this.

>Tony Wong



Mon, 18 Oct 1999 03:00:00 GMT
 
 [ 3 post ] 

 Relevant Pages 

1. using generic/text printer

2. using generic/text printer

3. Generic / Text Only printer problem

4. Paradox 5 - Printing to Generic Text Printer Question

5. Pdx 7 - Printing to a text file using the Generic Printer driver

6. Error Printing Form to Generic/Text Printer

7. Generic/Text Only "Printer" problem

8. Reports with Win31's Generic Text driver

9. Library printing reports on text printers !

10. problem with cristal report with general text printer

11. Printing with a generic printer

12. Generic Printer problem


 
Powered by phpBB® Forum Software