Click here to Skip to main content
15,887,892 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Connecting to SQL Server in VC++ Pin
Renjith Ramachandran19-Mar-05 8:05
Renjith Ramachandran19-Mar-05 8:05 
GeneralSend email VC++ Pin
Francis Chau17-Mar-05 17:14
Francis Chau17-Mar-05 17:14 
GeneralRe: Send email VC++ Pin
Serge Krynine17-Mar-05 18:22
Serge Krynine17-Mar-05 18:22 
GeneralMDI Document and MSComm Pin
xiao_in17-Mar-05 16:24
xiao_in17-Mar-05 16:24 
GeneralRe: MDI Document and MSComm Pin
JohnCz18-Mar-05 9:39
JohnCz18-Mar-05 9:39 
GeneralWindows Sockets Pin
Anthony988717-Mar-05 13:27
Anthony988717-Mar-05 13:27 
GeneralRe: Windows Sockets Pin
Serge Krynine17-Mar-05 13:53
Serge Krynine17-Mar-05 13:53 
GeneralFormatting data for a report Pin
bcemick17-Mar-05 12:22
bcemick17-Mar-05 12:22 
(Using VSC++ 6 - MFC)

I've looked through several articles (such as Printing with MFC Made Easy by Dan Pilat) and posts but, the information I'm looking for just isn't there. Plus, this is something that I want to do on my own, I just want to understand how it works; not have someone do it for me.

I'm trying to get data from a list control straight to the printer and have it formatted correctly. So far, everything I've tried hasn't worked. I've tried setting up tabs, but the printer prints them out as little squares. I've tried to manually set where each piece of information should print out at (x and y coordinates), but it's not working either, especially if the size of the string being printed changes (it throws everything else off).

Basically, here's what I want to set up and what I'm looking for some help with:

Column #1         Column#2             Column #3 (and so on)
Some data here    Some more   Right-aligned data


Because this is pretty much how it's coming out (or some variation thereof):
Column #1         Column#2             Column #3 (and so on)
    Some datSome moreRight-aligned data


Any ideas on how I can get the information to format correctly? Any help is appreciated.
GeneralRe: Formatting data for a report Pin
Ravi Bhavnani17-Mar-05 13:22
professionalRavi Bhavnani17-Mar-05 13:22 
GeneralRe: Formatting data for a report Pin
bcemick17-Mar-05 13:57
bcemick17-Mar-05 13:57 
GeneralActiveX Controls from 6.0 to .NET Pin
theFrenchHornet17-Mar-05 11:45
theFrenchHornet17-Mar-05 11:45 
GeneralDynamic submenus for shell context menu Pin
YaronNir17-Mar-05 11:41
YaronNir17-Mar-05 11:41 
GeneralRe: Dynamic submenus for shell context menu Pin
Michael Dunn17-Mar-05 17:52
sitebuilderMichael Dunn17-Mar-05 17:52 
GeneralRe: Dynamic submenus for shell context menu Pin
YaronNir17-Mar-05 23:40
YaronNir17-Mar-05 23:40 
Generalbreakpoints disabled all of a sudden Pin
ns17-Mar-05 11:33
ns17-Mar-05 11:33 
GeneralRe: breakpoints disabled all of a sudden Pin
John R. Shaw18-Mar-05 7:57
John R. Shaw18-Mar-05 7:57 
GeneralShellExecute IE with a file name Pin
Kyle P17-Mar-05 9:22
Kyle P17-Mar-05 9:22 
GeneralWindows Search Pin
Anonymous17-Mar-05 9:17
Anonymous17-Mar-05 9:17 
GeneralRe: Windows Search Pin
Renjith Ramachandran19-Mar-05 8:07
Renjith Ramachandran19-Mar-05 8:07 
GeneralGetCurrentHwProfile help needed Pin
brilliant10117-Mar-05 8:02
brilliant10117-Mar-05 8:02 
GeneralRe: GetCurrentHwProfile help needed Pin
David Crow17-Mar-05 8:25
David Crow17-Mar-05 8:25 
GeneralRe: GetCurrentHwProfile help needed Pin
brilliant10117-Mar-05 8:31
brilliant10117-Mar-05 8:31 
GeneralRe: GetCurrentHwProfile help needed Pin
David Crow17-Mar-05 8:50
David Crow17-Mar-05 8:50 
GeneralProgramming Challenge !!! advise Pin
brilliant10117-Mar-05 7:48
brilliant10117-Mar-05 7:48 
GeneralRe: Programming Challenge !!! advise Pin
David Crow17-Mar-05 8:00
David Crow17-Mar-05 8:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.