471,330 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Dictionary help

I'm currently working on a little database type program is which I'm
using a dictionary to store the information. The key is a component a and
the definition is a list of parts that make up the component. My problem
is I need to list out several components, but not all, and there
associated parts to a printer. Not having any luck. I can list them to
the screen but not the printer. Any help/ideas would be appreciated.

Steve
Oct 31 '07 #1
4 1016
Steve wrote:
I'm currently working on a little database type program is which I'm
using a dictionary to store the information. The key is a component a and
the definition is a list of parts that make up the component. My problem
is I need to list out several components, but not all, and there
associated parts to a printer. Not having any luck. I can list them to
the screen but not the printer. Any help/ideas would be appreciated.

Steve
Windows or Linux or Mac. Printers are handled differently on different
platforms. On Windows you can simply open LPT1, LPT2 or LPT3 as a file and
write to it (for simple printing). For more complex "Windows" printing you must
use Win32 extensions or something like wxWindows.

-Larry
Oct 31 '07 #2
On Wed, 31 Oct 2007 17:02:49 -0500, Larry Bates wrote:
Steve wrote:
>I'm currently working on a little database type program is which I'm
using a dictionary to store the information. The key is a component a
and the definition is a list of parts that make up the component. My
problem is I need to list out several components, but not all, and
there associated parts to a printer. Not having any luck. I can list
them to the screen but not the printer. Any help/ideas would be
appreciated.

Steve

Windows or Linux or Mac. Printers are handled differently on different
platforms. On Windows you can simply open LPT1, LPT2 or LPT3 as a file
and write to it (for simple printing). For more complex "Windows"
printing you must use Win32 extensions or something like wxWindows.

-Larry
I'm currently using Linux. I give it some more thought and research and
see what I can come up with. Thank you for the reply.

Steve
Nov 1 '07 #3
Steve wrote:
I'm currently working on a little database type program is which I'm
using a dictionary to store the information. The key is a component a and
the definition is a list of parts that make up the component. My problem
is I need to list out several components, but not all, and there
associated parts to a printer. Not having any luck. I can list them to
the screen but not the printer. Any help/ideas would be appreciated.

Steve
You can do os.system("<some printing command; lp fn.txt, etc.>") after
putting your stuf in a file.
Nov 1 '07 #4
On Thu, 01 Nov 2007 04:16:10 -0700, wes weston wrote:
Steve wrote:
>I'm currently working on a little database type program is which I'm
using a dictionary to store the information. The key is a component a
and the definition is a list of parts that make up the component. My
problem is I need to list out several components, but not all, and
there associated parts to a printer. Not having any luck. I can list
them to the screen but not the printer. Any help/ideas would be
appreciated.

Steve

You can do os.system("<some printing command; lp fn.txt, etc.>") after
putting your stuf in a file.
Thank you for the reply. I finally got it printing in Linux.

Steve
Nov 1 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Leif K-Brooks | last post: by
1 post views Thread by Djam | last post: by
2 posts views Thread by jg | last post: by
1 post views Thread by john wright | last post: by
8 posts views Thread by Brian L. Troutwine | last post: by
3 posts views Thread by JamesB | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.