473,387 Members | 1,700 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,387 software developers and data experts.

how to print out of C program on printer

how to print out of C program on printer
Sep 9 '10 #1
4 2932
ashitpro
542 Expert 512MB
Is it complicated?

I would have rather saved that output in some text file and hit ctrl+p.
Sep 9 '10 #2
Nepomuk
3,112 Expert 2GB
Do you want the program to do the printing or do you want to get the output and then print it manually? Also, how are you running the program? Within an IDE or from command line? If it's from command line, you can probably redirect the output to a text file automatically. With IDEs, I'm not sure.

Greetings,
Nepomuk
Sep 9 '10 #3
weaknessforcats
9,208 Expert Mod 8TB
You can redirect using Visual Studio.NET by just setting the command line argument property for your project.
Sep 9 '10 #4
Oralloy
988 Expert 512MB
Or, you can engage in printing under windows. It's actually rather straightforward.

Please tell us a little bit in-depth about how you're trying to print and what connection you have to your printer.

Conceptually printing is easy, but sometimes it's difficult to understand where all the pieces are.
Sep 9 '10 #5

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

Similar topics

2
by: Jody Burgess | last post by:
Hi; I am writing my first python program and would like to know how to change stdout to refer to my default printer or any other printer on my network. The other question is, Is there an API set...
2
by: Piyush | last post by:
Hi, I need to print stuff on the default printer on the click of a button without opening the print box opening up. Any pointers?
2
by: qumpus | last post by:
My program right now generates USPS style shipping label using System.Drawing.Graphics. It works fine except that the printer prints really slowly. I want to make my program take advantage of true...
7
by: avnit | last post by:
I can't seem to figure out how to print with my printer using python. I'm using Mac OSX 10.4. I was thinking maybe something with applescript. Does anyone know?
1
by: Greg | last post by:
I am only printing a page footer on page 1 and a page header after page 1. I have experimented heavily w/ placing a .Visible command in different locations and the best results have come with the...
2
by: Red Dragon | last post by:
Can someone kindly advice me how to send the print result to the printer instead of to the monitor in a C program? printf is the code to send to monitor. What is the code to send to printer?...
0
by: developer200701 | last post by:
The following code (which is distilled down from a larger application) worked for several years previously. Now, the instant you click on the print icon within the print preview window the...
2
by: ozipos | last post by:
I am trying to print text to a docket printer with the following command printer.print "trying to print" but I keep getting an error. Actually I want to print special keys so that the cah draw...
10
by: bhughes2187 | last post by:
Hey all, The access app I am creating, pulls a .dbf file into a table in access. The name of the printer to be printed to is contained in that file/table. How would I cycle through the list of...
2
by: jefer | last post by:
Hello! I would like to print a crystal report by using command line mydoc1.PrintToPrinter(1, False, 1, 2) ..but every time the program come to this line, starts doing I don't know what and...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.