Click here to Skip to main content
15,923,051 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalaquiring the size of a dialog resource Pin
luddet5-Jan-04 18:59
luddet5-Jan-04 18:59 
GeneralRe: aquiring the size of a dialog resource Pin
abc8765-Jan-04 20:30
abc8765-Jan-04 20:30 
GeneralRe: aquiring the size of a dialog resource Pin
Monty25-Jan-04 20:50
Monty25-Jan-04 20:50 
GeneralRe: aquiring the size of a dialog resource Pin
luddet6-Jan-04 6:32
luddet6-Jan-04 6:32 
GeneralSMS through my app Pin
parths5-Jan-04 17:56
parths5-Jan-04 17:56 
GeneralRe: SMS through my app Pin
misha_grewal5-Jan-04 21:14
misha_grewal5-Jan-04 21:14 
GeneralRe: SMS through my app Pin
parths5-Jan-04 21:28
parths5-Jan-04 21:28 
QuestionHow do I get my IP address when I am on line? Pin
Anonymous5-Jan-04 16:52
Anonymous5-Jan-04 16:52 
AnswerRe: How do I get my IP address when I am on line? Pin
Roger Wright5-Jan-04 17:47
professionalRoger Wright5-Jan-04 17:47 
AnswerRe: How do I get my IP address when I am on line? Pin
kvenkat5-Jan-04 18:21
kvenkat5-Jan-04 18:21 
GeneralTask Bar Icons Pin
User 5838525-Jan-04 16:50
User 5838525-Jan-04 16:50 
GeneralRe: Task Bar Icons Pin
Monty25-Jan-04 21:57
Monty25-Jan-04 21:57 
GeneralLittle Help please Pin
ViTToRi05-Jan-04 15:45
ViTToRi05-Jan-04 15:45 
GeneralRe: Little Help please Pin
Christian Graus5-Jan-04 16:08
protectorChristian Graus5-Jan-04 16:08 
QuestionHow to enumerate all the files in a directory? Pin
George25-Jan-04 15:12
George25-Jan-04 15:12 
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 

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.