For Programmers: Free Programming Magazines  


Home > Archive > Clipper > October 2005 > To send a printable price list









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author To send a printable price list
Rob

2005-10-07, 6:55 pm

Hi at all,
I have a little problem
If I want to send a digital invoice and/or a price list on a file.txt maked
with clipper how can the user print it?

Thank you very much in advance

Rob


pete@nospam.demon.co.uk

2005-10-07, 6:55 pm

In article <izw1f.1634$TJ5.44756@twister1.libero.it>
roboNONSPAMMING@robNOSPAM.com "Rob" writes:

> Hi at all,
> I have a little problem
> If I want to send a digital invoice and/or a price list on a file.txt maked
> with clipper how can the user print it?
>
> Thank you very much in advance
>
> Rob


Assuming that your user has a computer (why would you send
anybody a "file.txt" if he doesn't?) it is reasonable to assume
also that he has the nous to print it. Provided that he also has
a printer of course ;-) Especially if it really is a plain ASCII
text file (as the .txt extension would suggest) and not some
proprietary format.

Lots of "assuming" there, so perhaps you could post some more
details about what you are trying to achieve.

Pete
--
"We have not inherited the earth from our ancestors,
we have borrowed it from our descendants."
Ian Boys

2005-10-07, 6:55 pm

Clicking on an E-mail attachment with a .TXT extension should (if it's not
too big) load the file in Notepad, which has a print option.

When in these situations, send it to yourself and see what you can do with
it, then get the customer to do the same.

Ian Boys
DTE


Fred Zuckerman

2005-10-07, 6:55 pm

"Rob" <roboNONSPAMMING@robNOSPAM.com> wrote in message
news:izw1f.1634$TJ5.44756@twister1.libero.it...
> Hi at all,
> I have a little problem
> If I want to send a digital invoice and/or a price list on a file.txt

maked
> with clipper how can the user print it?
>
> Thank you very much in advance
>
> Rob


From a C> prompt or batch file:

Copy file.txt lpt1

Fred Zuckerman



Norman Perelson

2005-10-07, 6:55 pm


"Rob" <roboNONSPAMMING@robNOSPAM.com> wrote in message
news:izw1f.1634$TJ5.44756@twister1.libero.it...
> Hi at all,
> I have a little problem
> If I want to send a digital invoice and/or a price list on a file.txt
> maked
> with clipper how can the user print it?
>
> Thank you very much in advance
>
> Rob


Hi Rob,
While the responses so far have correctly answered your question taken
literally, but I think your problem is a bigger one for two reasons. Firstly
a text file is not secure enough, especially for an invoice, and secondly
formatting could be unacceptable because your user is likely to use a
proportional font when printing. You should rather be converting it
yourself to a PDF file before sending it to the user.

But, if plain text is good enough, take a look at 'blat'. You can send your
'file.txt' as the body of an email directly from within your Clipper
program.

HTH
--
Norman Perelson
www.shopkeeper.co.za


Rob

2005-10-08, 7:55 am

"Norman Perelson" wrote:
Firstly
> a text file is not secure enough, especially for an invoice, and secondly
> formatting could be unacceptable because your user is likely to use a
> proportional font when printing. You should rather be converting it
> yourself to a PDF file before sending it to the user.
> --
> Norman Perelson



Dear Norman you have centered the problem
Infact I must transform my invoices into pdf file
How?
Thank
Rpb


Ian Boys

2005-10-08, 6:55 pm

Get a copy of CutePDF at http://www.cutepdf.com/ It acts as a virtual
printer, you print to it and instead of coming out on paper it forms a PDF
instead. There is a Clipper library out there that allows you to create
PDF's directly, I just can't remember where it came from, but I'm sure
somebody will remind us.

Ian Boys
DTE


Markus Wiederstein

2005-10-08, 6:55 pm

Am Sat, 08 Oct 2005 12:17:38 +0200 hat Rob <roboNONSPAMMING@robNOSPAM.com>
geschrieben:

> Dear Norman you have centered the problem
> Infact I must transform my invoices into pdf file
> How?


http://www.paehl.de/txt2pdf.zip

This program is a easy pdf creator from textfiles (commandline version).
You can insert the author and the producer. Regard this as an easy program
to create pdf-files. With English and German manual. FREEWARE.
Davide Guolo

2005-10-09, 3:55 am

Rob,

> Infact I must transform my invoices into pdf file


you may want to have a look at Printfil, which allows you this, with or
without user intervention, with optional encryption and password protecting
the created PDF files, which can also include the invoice in BMP format, in
addition to the text created by your Clipper application, with very nice
results and only 2 lines of code in your Clipper source.

You can find more info and a free trial to download at
http://www.printfil.com

Regards,
Davide Guolo
--------------------------------------------------------------
Printfil - Windows Printing System for Applications
http://www.printfil.com
Odbc4All - Connection to ODBC Data Sources for any Application
http://www.guolo.com/odbc4all
--------------------------------------------------------------


Norman Perelson

2005-10-10, 6:55 pm


"Markus Wiederstein" <markus.wiederstein@web.de> wrote in message
news:op.syb8q5tdolrrg1@news.individual.net...
> Am Sat, 08 Oct 2005 12:17:38 +0200 hat Rob <roboNONSPAMMING@robNOSPAM.com>
> geschrieben:
>
>
> http://www.paehl.de/txt2pdf.zip
>
> This program is a easy pdf creator from textfiles (commandline version).
> You can insert the author and the producer. Regard this as an easy program
> to create pdf-files. With English and German manual. FREEWARE.


Hi Markus,

This command line text-to-pdf utility was just what I was looking for and it
works very well under Win32. Thank you.

Now I want to do the same thing under Linux. Do you know of a similar
command line utility that can be called from Flagship?

Kind regards
--
Norman Perelson
http://www.shopkeeper.co.za


Michael Hagl

2005-10-10, 6:55 pm

Hi Rob

the best way to convert something to PDF or TIFF is to print to a windows
printer. Then you can use any PDF-converter you want.
For this the best way ist to use PageScript. Its easy to implement and you
can use all the features of Windows-Printing.

Take a look at www.abeelabs.com

I use Pagescript since 4 month and its a very good product.

Michael Hagl




"Rob" <roboNONSPAMMING@robNOSPAM.com> schrieb im Newsbeitrag
news:61N1f.2907$Pe2.72029@twister2.libero.it...
> "Norman Perelson" wrote:
> Firstly
secondly[color=darkred]
>
>
> Dear Norman you have centered the problem
> Infact I must transform my invoices into pdf file
> How?
> Thank
> Rpb
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com