473,326 Members | 2,182 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,326 software developers and data experts.

Printing in VC++

dt
Hello, I'm writing a simple application in Visual C++. The application
basically takes in a set of values (of type double and int) and outputs a set
of values. Both the input and output is implemented through dialog boxes
(via the dialogbox function). I wanted to be able to print out the values of
the output to a printer attached to the computer running the application.
Can anyone describe to me how to do this? or if it is a bit more complicated
than that, could someone point me in the right direction? (ie. which
functions i can look up or a link to a tutorial or something) Thanks so much!
Nov 17 '05 #1
1 1172
>Hello, I'm writing a simple application in Visual C++. The application
basically takes in a set of values (of type double and int) and outputs a set
of values. Both the input and output is implemented through dialog boxes
(via the dialogbox function). I wanted to be able to print out the values of
the output to a printer attached to the computer running the application.
Can anyone describe to me how to do this? or if it is a bit more complicated
than that, could someone point me in the right direction? (ie. which
functions i can look up or a link to a tutorial or something) Thanks so much!


Have a look at these topics in MSDN:

SDK based project:
"Windows GDI
Printing and Print Spooler"

For MFC project:

"Visual C++ Concepts: Adding Functionality
Printing"

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alex Chervinsky | last post by:
Hello everybody! I am using VC++6.0. I want to print a text with the font OCRB, and with the symbol size 2.7 mm Height and 2.5 mm width. I use : // 100 log units per mm for HIMETRIC mapping...
9
by: Jody Gelowitz | last post by:
I am trying to find the definition of "Safe Printing" and cannot find out exactly what this entitles. The reason is that I am trying to print contents from a single textbox to no avail using the...
11
by: Tatu Portin | last post by:
Have this kind of struct: typedef struct { char **user_comments; /* ... */ } vorbis_comment; /* prototype */ char * read_vorbis_string ( FILE *sc);
0
by: Ann | last post by:
I have a C# application that uses PrintDocument and PrintPage to draw reports. Now I need to integrate a tax form printing from a legacy VC++ DLL into the C# application. One of the important...
4
by: Russ | last post by:
To ASP.NET printing experts: My Asp.net web form needs to print some reports at the client side. I've been trying to research this and find some confusing and conflicting information in previous...
1
by: Charles | last post by:
I'd like to build an app with C++ to work or serve my hotel organisation as in data I do not know what command prints and which can help the telephone record or com port work with my data...
1
by: electrixnow | last post by:
I wrote a program in VC++ that generates a text file report. I would like to get this report data into a word document that my company uses. I could use bookmarks for reference in the document. Is...
1
by: electrixnow | last post by:
I wrote a program in VC++ that generates a text file report. I would like to get this report data into a word document that my company uses. I could use bookmarks for reference in the document. Is...
8
by: Travis | last post by:
Is there a way to print out the name of the function calling another function? For example: void foo() { debugPrint("Beginning calculation..."); }
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.