Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Data from DB to Excel Pin
David Crow24-Nov-09 17:03
David Crow24-Nov-09 17:03 
AnswerRe: Data from DB to Excel Pin
T210226-Nov-09 21:17
T210226-Nov-09 21:17 
Questionmissing activex control test container in visual studio 2008 Pin
Game-point23-Nov-09 22:43
Game-point23-Nov-09 22:43 
QuestionGetDlgItemText Pin
sashoalm23-Nov-09 20:44
sashoalm23-Nov-09 20:44 
AnswerRe: GetDlgItemText Pin
CPallini23-Nov-09 20:52
mveCPallini23-Nov-09 20:52 
GeneralRe: GetDlgItemText Pin
sashoalm24-Nov-09 4:19
sashoalm24-Nov-09 4:19 
QuestionPrinting Image Pin
Benjamin Bruno23-Nov-09 20:13
Benjamin Bruno23-Nov-09 20:13 
AnswerRe: Printing Image Pin
tolw23-Nov-09 20:40
tolw23-Nov-09 20:40 
Try debugging to see the actual values you pass into the function call.

Looking at your code I would say that depending on the size of rcPrintRect the Destination rectangle can have negative width and height. Try hardcoding it for starters and see if it helps.

The documentation for the function states:
If nSrcWidth and nDestWidth have different signs, the function creates a mirror image of the bitmap along the x-axis.
If nSrcHeight and nDestHeight have different signs, the function creates a mirror image of the bitmap along the y-axis.


In other words:

Change:
nXMargin + 5000,
rcPrintRect.top,
rcPrintRect.right - 7500,
rcPrintRect.bottom - 10500,


to:
nXMargin + 5000,
rcPrintRect.top,
100,
100,


Hope this helps Smile | :)
GeneralRe: Printing Image Pin
Benjamin Bruno2-Dec-09 0:28
Benjamin Bruno2-Dec-09 0:28 
AnswerRe: Printing Image Pin
KarstenK23-Nov-09 21:56
mveKarstenK23-Nov-09 21:56 
GeneralRe: Printing Image Pin
Benjamin Bruno2-Dec-09 0:29
Benjamin Bruno2-Dec-09 0:29 
Questionhow to hook sendmessage、postmessage and the key-down messsage on the same time, big john Pin
nenfa23-Nov-09 20:10
nenfa23-Nov-09 20:10 
AnswerRe: how to hook sendmessage、postmessage and the key-down messsage on the same time, big john Pin
«_Superman_»23-Nov-09 20:44
professional«_Superman_»23-Nov-09 20:44 
GeneralRe: how to hook sendmessage、postmessage and the key-down messsage on the same time, big john Pin
nenfa23-Nov-09 20:52
nenfa23-Nov-09 20:52 
AnswerRe: how to hook sendmessage、postmessage and the key-down messsage on the same time, big john Pin
kcynic23-Nov-09 20:50
kcynic23-Nov-09 20:50 
QuestionVC++ & MySQL Pin
NaveenHS23-Nov-09 19:56
NaveenHS23-Nov-09 19:56 
AnswerRe: VC++ & MySQL Pin
KarstenK23-Nov-09 21:58
mveKarstenK23-Nov-09 21:58 
AnswerRe: VC++ & MySQL Pin
Saurabh.Garg23-Nov-09 23:46
Saurabh.Garg23-Nov-09 23:46 
Questionusing activeX in win32 project! Pin
zon_cpp23-Nov-09 19:41
zon_cpp23-Nov-09 19:41 
AnswerRe: using activeX in win32 project! Pin
Richard MacCutchan23-Nov-09 21:40
mveRichard MacCutchan23-Nov-09 21:40 
GeneralRe: using activeX in win32 project! Pin
zon_cpp24-Nov-09 19:05
zon_cpp24-Nov-09 19:05 
GeneralRe: using activeX in win32 project! Pin
Richard MacCutchan24-Nov-09 22:45
mveRichard MacCutchan24-Nov-09 22:45 
GeneralRe: using activeX in win32 project! Pin
zon_cpp25-Nov-09 0:09
zon_cpp25-Nov-09 0:09 
GeneralRe: using activeX in win32 project! Pin
Richard MacCutchan25-Nov-09 1:54
mveRichard MacCutchan25-Nov-09 1:54 
GeneralRe: using activeX in win32 project! Pin
zon_cpp25-Nov-09 21:51
zon_cpp25-Nov-09 21:51 

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.