If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > printer setup

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-07-09, 03:01
dbforumformp dbforumformp is offline
Registered User
 
Join Date: Dec 2008
Posts: 2
dear sir,
i am user of dbforum. i am delphi developer and using delphi6. i need to print some data to the multiple printer
how can it be possible to set printer as default from code.
printers may be connected directly to hub or to other computers.

i tried to post this text but i did not find anywhere to write.
Reply With Quote
  #2 (permalink)  
Old 01-07-09, 03:15
dbforumformp dbforumformp is offline
Registered User
 
Join Date: Dec 2008
Posts: 2
printer setup

i am delphi developer and using delphi 6

i need to control printer i.e to send some test to one printer and some text to another printer. i need to use multiple printer from delphi code. how can it be possible to set default printer from the name of printer (string). if any solution pls help me.

i need to send only a line at a time to the selected printer.

pls suggest and help me

Mohan Prasad Ghimire(dbforumformp)
mohanswebpage@yahoo.com
Reply With Quote
  #3 (permalink)  
Old 01-07-09, 03:57
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,598
Based on your description, it sounds like you are writing Delphi code, and want to be able to use that code to access multiple printers as streams. If this analysis is correct, then you can use my idea. If my analysis of your problem is bad, please restate your problem.

For a collection of N printers (let's assume two, but that isn't really important) you need to open N file objects and associate each of those objects with one printer. The way that you map the input strings to the printer definition is up to you as the program designer... You can ask the user for digits, for names, or to you can enumerate the Windows printers and ask the user to click on radio buttons or similar controls to select a group of printers. The design you choose will drastically affect how you initialize the file objects, but not how the rest of your code routes text to those file objects.

Once you've initilized the file object, simply use the Write() or WriteLn() functions to send text to them.

-PatP
Reply With Quote
  #4 (permalink)  
Old 02-04-09, 23:55
hkp819 hkp819 is offline
Registered User
 
Join Date: Dec 2008
Posts: 59
visit this link for that help. hope you will get good help from here.
Basic Setup
__________________
New York Web design
Website design

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On