Click here to Skip to main content
15,918,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLooking for GUI simple tutorial with VC++ .NET version 7.1 Pin
Loc Milkyway26-Oct-05 5:52
Loc Milkyway26-Oct-05 5:52 
AnswerRe: Looking for GUI simple tutorial with VC++ .NET version 7.1 Pin
Kevin McFarlane26-Oct-05 9:34
Kevin McFarlane26-Oct-05 9:34 
GeneralRe: Looking for GUI simple tutorial with VC++ .NET version 7.1 Pin
Loc Milkyway27-Oct-05 4:26
Loc Milkyway27-Oct-05 4:26 
QuestionOnPaint vr. DrawItem Pin
jason9926-Oct-05 5:39
jason9926-Oct-05 5:39 
AnswerRe: OnPaint vr. DrawItem Pin
Chris Losinger26-Oct-05 5:53
professionalChris Losinger26-Oct-05 5:53 
GeneralRe: OnPaint vr. DrawItem Pin
PJ Arends26-Oct-05 9:27
professionalPJ Arends26-Oct-05 9:27 
GeneralRe: OnPaint vr. DrawItem Pin
Chris Losinger26-Oct-05 9:35
professionalChris Losinger26-Oct-05 9:35 
Questionprint blank pages Pin
valerie9926-Oct-05 5:16
valerie9926-Oct-05 5:16 
good morning,

anybody has experience with this? the report is txt file, everything looks just fine, but when send it to print, between some pages it would print blank pages, it didn't miss any info, but between 2&3, 3&4, 4&5 it "insert" empty page into. I have check the form feet and everything on txt file, it looks fine.

here is the print job:
if ( nPageNo > 1 )
m_Rpt->rptMessage( "\f" ); // form feed...

m_Rpt->rptMessage( m_strOrientCPI );

//do line drawings, detail headers, etc.
if ( nFirstGrpChg != -1 )
{
checkForNewPage( true );

drawBottomLine();
doDetailSummary();
drawBottomLine();

checkForNewPage( false, nFirstGrpChg );
if ( m_nCurrentPageLine == 0 )
doHeaders();
else
{
//if not a new page, still need a seperator line
fprintf(pf_rptlog,"\n" );
m_nCurrentPageLine++;
}



//call formatData here to correct witdth after footer and headers
strOut = formatData( pszData, delimiter, 0, true );

while( nFirstGrpChg < m_nDrillDownLevels )
{
drawTopLine( ( nFirstGrpChg + 1 ) );
fprintf(pf_rptlog,"%s\n",doBoinks( vholdDataHdr[nFirstGrpChg], (nFirstGrpChg + 1) ).c_str() );
m_nCurrentPageLine++;
nFirstGrpChg++;
}

drawTopLine();
doDetailHeader();
drawMiddleLine();
}
else
{
checkForNewPage( true );

if ( m_nCurrentPageLine == 0 )
{
doHeaders(); //include firstpages stuff in here

nFirstGrpChg = checkGroupHeaders( vholdDataHdr, pszData, delimiter );

loadFormat( m_currentFmt ); //this will set correct with for first grp on first page
strOut = formatData( pszData, delimiter, 0, true );

if ( nFirstGrpChg != -1 )
{
while( nFirstGrpChg < m_nDrillDownLevels )
{
drawTopLine( ( nFirstGrpChg + 1 ) );
fprintf(pf_rptlog,"%s\n",doBoinks( vholdDataHdr[nFirstGrpChg], (nFirstGrpChg + 1) ).c_str() );
m_nCurrentPageLine++;
nFirstGrpChg++;
}
}

drawTopLine();
doDetailHeader();
drawMiddleLine();
}
else
{
strOut = formatData( pszData, delimiter, 0, true );
}
}

m_bFirstGrpLine = false;

if ( m_nFrameGroup != -1 )
{
strOut = doBoinks( strOut ); //getBoink() + strOut + getBoink();
}

fprintf(pf_rptlog,"%s\n",strOut.c_str() );
m_nCurrentPageLine++;

if ( m_nCurrentPageLine == ( m_nPageLength - 1 ) )
doFooter();
Questiontoolbar for Outlook Express Pin
Anonymous26-Oct-05 4:30
Anonymous26-Oct-05 4:30 
AnswerRe: toolbar for Outlook Express Pin
andy14526-Oct-05 23:51
andy14526-Oct-05 23:51 
Questionrandom number that doesn't repeat? Pin
aaadetos26-Oct-05 4:24
aaadetos26-Oct-05 4:24 
AnswerRe: random number that doesn't repeat? Pin
David Crow26-Oct-05 4:30
David Crow26-Oct-05 4:30 
GeneralRe: random number that doesn't repeat? Pin
John R. Shaw26-Oct-05 15:20
John R. Shaw26-Oct-05 15:20 
AnswerRe: random number that doesn't repeat? Pin
toxcct26-Oct-05 5:03
toxcct26-Oct-05 5:03 
AnswerRe: random number that doesn't repeat? Pin
Joe Woodbury26-Oct-05 6:31
professionalJoe Woodbury26-Oct-05 6:31 
AnswerRe: random number that doesn't repeat? Pin
__yb27-Oct-05 2:18
__yb27-Oct-05 2:18 
QuestionPlease Help with CAsyncSocket Pin
cgb14326-Oct-05 4:17
cgb14326-Oct-05 4:17 
AnswerRe: Please Help with CAsyncSocket Pin
Moak4-Nov-05 8:39
Moak4-Nov-05 8:39 
Questionefficient 'push&amp;hold' button ? Pin
ganjabro26-Oct-05 4:07
ganjabro26-Oct-05 4:07 
AnswerRe: efficient 'push&amp;hold' button ? Pin
David Crow26-Oct-05 4:25
David Crow26-Oct-05 4:25 
GeneralRe: efficient 'push&amp;hold' button ? Pin
Anonymous26-Oct-05 7:02
Anonymous26-Oct-05 7:02 
QuestionRe: efficient 'push&amp;hold' button ? Pin
David Crow26-Oct-05 7:10
David Crow26-Oct-05 7:10 
AnswerRe: efficient 'push&amp;hold' button ? Pin
ganjabro26-Oct-05 8:35
ganjabro26-Oct-05 8:35 
GeneralRe: efficient 'push&amp;hold' button ? Pin
ganjabro26-Oct-05 8:41
ganjabro26-Oct-05 8:41 
QuestionHow to get the actual value? Pin
ShiningStarPxx26-Oct-05 3:43
ShiningStarPxx26-Oct-05 3:43 

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.