Click here to Skip to main content
15,896,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to enumerate all the files in a directory? Pin
Prakash Nadar5-Jan-04 16:02
Prakash Nadar5-Jan-04 16:02 
GeneralRe: How to enumerate all the files in a directory? Pin
George25-Jan-04 17:30
George25-Jan-04 17:30 
QuestionHow to use! Pin
skylonely5-Jan-04 15:04
skylonely5-Jan-04 15:04 
AnswerRe: How to use! Pin
abc8765-Jan-04 20:07
abc8765-Jan-04 20:07 
QuestionHow can I produce a report ... Pin
Qadddd5-Jan-04 12:13
Qadddd5-Jan-04 12:13 
AnswerRe: How can I produce a report ... Pin
Jörgen Sigvardsson5-Jan-04 12:49
Jörgen Sigvardsson5-Jan-04 12:49 
GeneralRe: How can I produce a report ... Pin
Qadddd5-Jan-04 22:20
Qadddd5-Jan-04 22:20 
GeneralRe: How can I produce a report ... Pin
Jörgen Sigvardsson5-Jan-04 23:47
Jörgen Sigvardsson5-Jan-04 23:47 
Qadddd wrote:
Can you be more precise on this "pass it to the printer via Shell/IE" or indicate me an article where I can read something on it

You can either load IE with the result HTML, or your could use the shell API function ShellExecute to print. A simple solution is to just load the report into IE - the user usually wants to preview reports and then print it.

As for generating HTML, I think you'll have to be on the creative side there. I'd build primitives (C++ classes) for generating low level HTML. One class per element basically - and build an HTML object model from there. I'm not sure, but I think MSHTML does this already. Consult the MSDN documentation for further info on that API. Ontop of MSHTML, you can build your own abstractions like ReportHeader, ReportFooter, ReportBody, etc. Abstractions that uses and composes the MSHTML objects in concise way. This combined with CSS can yield pretty good looking reports, but it'll cost you the knowledge of HTML and CSS + various APIs.


Qadddd wrote:
use GDI directly ... but isn't it to hard/tedious to do this ?

Uh huh. That's why there's a business for report generation tools. Smile | :)

--
You're entertaining at least.
GeneralRe: How can I produce a report ... Pin
Qadddd16-Feb-04 13:00
Qadddd16-Feb-04 13:00 
GeneralProper organization of .cpp and .h files. Pin
blackmesa5-Jan-04 11:59
blackmesa5-Jan-04 11:59 
GeneralRe: Proper organization of .cpp and .h files. Pin
Jörgen Sigvardsson5-Jan-04 12:51
Jörgen Sigvardsson5-Jan-04 12:51 
Generalproblem with gethostbyaddr Pin
Chernobog15-Jan-04 11:47
Chernobog15-Jan-04 11:47 
GeneralRe: problem with gethostbyaddr Pin
Jörgen Sigvardsson6-Jan-04 0:15
Jörgen Sigvardsson6-Jan-04 0:15 
GeneralRe: problem with gethostbyaddr Pin
David Crow6-Jan-04 5:07
David Crow6-Jan-04 5:07 
GeneralRe: problem with gethostbyaddr Pin
Chernobog17-Jan-04 12:22
Chernobog17-Jan-04 12:22 
GeneralNewbie C++ question Pin
Anonymous5-Jan-04 11:26
Anonymous5-Jan-04 11:26 
GeneralRe: Newbie C++ question Pin
Ian Darling5-Jan-04 11:43
Ian Darling5-Jan-04 11:43 
GeneralRe: Newbie C++ question Pin
Jörgen Sigvardsson5-Jan-04 12:53
Jörgen Sigvardsson5-Jan-04 12:53 
GeneralRe: Newbie C++ question Pin
David Crow6-Jan-04 5:16
David Crow6-Jan-04 5:16 
GeneralNewbie C++ question Pin
Anonymous5-Jan-04 11:25
Anonymous5-Jan-04 11:25 
QuestionHow to monitor file operations Pin
shaomin5-Jan-04 10:37
shaomin5-Jan-04 10:37 
AnswerRe: How to monitor file operations Pin
Ravi Bhavnani5-Jan-04 11:48
professionalRavi Bhavnani5-Jan-04 11:48 
GeneralRe: How to monitor file operations Pin
shaomin8-Jan-04 12:55
shaomin8-Jan-04 12:55 
GeneralCalling UpdateData(FALSE) will screw my RadioButton-group selection Pin
andreir235-Jan-04 9:33
andreir235-Jan-04 9:33 
GeneralRe: Calling UpdateData(FALSE) will screw my RadioButton-group selection Pin
abc8765-Jan-04 10:05
abc8765-Jan-04 10:05 

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.