|
Quote from the file EasyReport.cpp
/*****************************************************************
*
* method :void CEasyReport::Start(void)
*
* parameters : none
*
* returns :
*
* description: Start the report generation. Create all the fonts, etc
* Try and get the printer device context, If no printer is set up as
* the default printer on the system, create a screen device context.
*
****************************************************************/
So you have to make that your code attach the printerDC you are getting to the m_printerDC, that printerDC is being used in the CEasyReport::CEasyReport () , in the CEasyReport::WriteParagraph () , in the CEasyReport::Start () and the CEasyReport::End () . But watch out, the definition is an HDC so maybe you can not use your CDC* directly.
I suggest you to read another time carefully the articles whose code you are using, go slow through the code they provided because the support for printing is in the pre-done code you are using. You just have to find your way to correctly connect them. If I were you I would try to contact with the autors ask them directly.
Good Luck
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Pretty cool. I dl'd and printed blank pages too! Lemme poke it with a stick...
|
|
|
|
|
You dn't want This[^] do you?
|
|
|
|
|
That one doesn't have print preview, does it?
My reports should be shown on the screen to the user, along with the option to print it out.
So you can't locate the problem in the code?
Regards,
jsix
|
|
|
|
|
void CPoView::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
CPoDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
//if(pDoc->r.top>>120)
//{
InvalidateRect(pDoc->r,TRUE);
pDoc->r.left+=1;
pDoc->r.top-=2;
pDoc->r.right+=1;
pDoc->r.bottom-=2;
InvalidateRect(pDoc->r,FALSE);
//}
if(what?)
{InvalidateRect(pDoc->r,TRUE);
pDoc->r.left+=1;
pDoc->r.top+=2;
pDoc->r.right+=1;
pDoc->r.bottom+=2;
InvalidateRect(pDoc->r,FALSE);
}
CView::OnTimer(nIDEvent);
I want to make a Ellipse move up according to my path,then it arrive a line above it will change path,moving down accoring to my another path,
that control how to definite?
I am expecting your wonderfull answer!
|
|
|
|
|
And what has to do pDoc with the Ellipse?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
What about being a place to save "r"?
pDoc is supposed to be where the data have to be saved :P
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
youareabigboy wrote: want to make a Ellipse move up according to my path,then it arrive a line above it will change path,moving down accoring to my another path,
that control how to definite?
Please explain yourself better
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Im not sure but do you need to CRectTracker ?
|
|
|
|
|
A program that will prompt the user to enter the
numerical grade, converts the numerical grade
to a letter grade, and displays the letter grade as
shown in the table:
NUMERICAL GRADE LETTER GRADE
greater than or equal to 95 A+
Less than 95 but greater than or equal 90 A
Less than 90 but greater than or equal 85 B+
Less than 85 but greater than or equal 80 B
Less than 80 but greater than or equal 75 C+
Less than 75 but greater than or equal 70 C
Less than 70 but greater than or equal 60 D
Less than 60 F
(it's in Visual Basic C++)
thank you
Keypi
|
|
|
|
|
visual basic or C++ ???
anyway, this is very, very basic, you should ask your teacher/instructor/tutor for some guidance.
This signature was proudly tested on animals.
|
|
|
|
|
|
what about something like :
if ( )
{
}
else if ( )
{
}
Like I said, this is really basic stuff...
This signature was proudly tested on animals.
|
|
|
|
|
Maximilien wrote:
Like I said, this is really basic stuff...
I thought he said it was C++.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
This signature was proudly tested on animals.
|
|
|
|
|
Do you know about the if statement?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
And cout and cin for c++ and ReadLine and WriteLine for c++.net.
|
|
|
|
|
Using Visual C++ 6.0 MFC in SDI application
I want to change the scale of my drawings depending on the user's screen size and resolution. It isn't clear to me how to get that information from the user's PC for drawing in given window.
Thanks!
|
|
|
|
|
Use GetSystemMetrics() with SM_CXSCREEN, SM_CYSCREEN as parameter value.
- Malli...!
|
|
|
|
|
|
Hi All,
I'm testing some software an need a 64 bit version of notepad (if it exists). Especially nice would be a IA64 version.
If someone has it, could you email it to noloader, email account? Before sending to google, rename the file notpepad.exe -> notepad.exe.txt and then zip it.
Jeff
|
|
|
|
|
Hi,
Im doing a project on surveillance applications.I have to identify the prsence of static objects in frames obtained from ip camera.I use VC++ and opencv.Anyone please help with how to identify objects?
|
|
|
|
|
|
this is somewhat like the project that i have to do.but it gives certain erors when added to the code...some files such as "dshow.h" is missing.could you please help me in doing the work?how shoud i proceed.im not allowed to install any other softwares..i use opencv and vc++.Please help.I should also draw bounding boxes as done here.I have to alse track the object to detect its removal from the scene..Please help...............
|
|
|
|
|
Did you install the DirectX SDK as stated in the other article he is referring to in the "Using the code" section ?
|
|
|
|