472,958 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 1057
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Leif K-Brooks | last post by:
I need to associate a string (key) with an integer (value). A dictionary would do the job, except for the fact that it must be ordered. I also need to look up the value for a specific key easily,...
1
by: Djam | last post by:
Hi, I need your help to build a dictionary on mysal database to have an efficient keyword search engine. Thanks :-) Djam
2
by: ESPNSTI | last post by:
Hi, I'm trying to use a generics dictionary with a key class that implements and needs IComparable<>. However when I attempt to use the dictionary, it doesn't appear to use the IComparable<> to...
2
by: jg | last post by:
I was trying to get custom dictionary class that can store generic or string; So I started with the example given by the visual studio 2005 c# online help for simpledictionay object That seem...
1
by: john wright | last post by:
I have a dictionary oject I created and I want to bind a listbox to it. I am including the code for the dictionary object. Here is the error I am getting: "System.Exception: Complex...
4
by: Bill Woodruff | last post by:
< note : this message was sparked in part by comments by David Browne on a previous thread : "inserting an anonymous method as a value in a generic dictionary ?" : David had shown the use of...
8
by: Brian L. Troutwine | last post by:
I've got a problem that I can't seem to get my head around and hoped somebody might help me out a bit: I've got a dictionary, A, that is arbitarily large and may contains ints, None and more...
4
by: O.B. | last post by:
I need the ability to parse through the values of a Dictionary and remove certain ones depending on their attribute values. In the example below, an InvalidOperationException is thrown in the...
3
by: JamesB | last post by:
I have a config screen in my app that updates a dictionary<key,value>. I want to store a copy of this before going into the config screen so if the user wants to cancel all their changes I can...
1
by: sachin2 | last post by:
I am using 3 types of dictionaries. 1) Dictionary<string, string > d = new Dictionary<string, string>(); 2) Dictionary<string, List<string>> d = new Dictionary<string, List<string>>(); 3)...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.