473,376 Members | 1,079 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

printing through c++. want to use printer to print through c++.

i want to print some text through printer in c++. please help me out.. please..
Jul 19 '13 #1
3 1508
weaknessforcats
9,208 Expert Mod 8TB
Your OS should have system calls to ship data to the printer. That may mean you need to install the SDK for your OS.

Windows uses calls like TextOut and DrawText. But you need to read up on these before attempting.
Jul 25 '13 #2
donbock
2,426 Expert 2GB
Would it be easier to write your program so that it sends the desired output to stdout (the screen); and then redirect that output to the printer on the command line that invokes your program?
Jul 25 '13 #3
weaknessforcats
9,208 Expert Mod 8TB
That's not exactly printing from the program plus the program loses it's interface. However, "print text through the printer" is pretty vague so a redirect may be good enough.
Jul 25 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Rob | last post by:
I'm having a problem with the printer for a program I've created. I have to recreate a data table on a page to be printed. Earlier today it worked fine; however, I am now having an odd problem:...
2
by: Pudlik, Szymon | last post by:
Hi, I have page with left banner (links), footer and header and of cours with some images and text. I want to print this page but without banner, header and footer. Only images and text. Is it...
2
by: project | last post by:
I want to print an sales invoice with out open crystal report. I want to know ,with out opening Crystal report, how can I give the command to be printing invoice. I'm using the following lines...
2
by: Robert Kellogg | last post by:
Hello All, I'm having an issue with printing from AxWebBrowser.ExecWB.. The printing works just fine other then is always print from the default printer.. I'm sure there is a way to accomplish...
1
by: CM | last post by:
Hi, I'm thinking about writing .net codes (asp.net, vb.net) for printing management, such as keep tracking of who prints what on when...etc. The app will need to find all available network...
6
by: raghuveer | last post by:
i want to print my linked list in the reverse order ie..last item first and first item last..this is what i have so far struct linked_list { int number; struct linked_list *next; }; typedef...
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
2
by: Zuhaib Hyder | last post by:
plz guide me i'm on ly abble to print image or either only text but i want to print header and footer text with the image in middle plz guide me, how to do it in asp.net and c#
8
by: dponce | last post by:
What's up forum, Is this possible? Is there a way to have access ask the end user which report you want to print? If so, how.
0
by: abdulazees | last post by:
when click button i want to print autometicaly reportveiwer data, i not need to show reportviewer.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.