Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. print blank pages

print blank pages

Scheduled Pinned Locked Moved C / C++ / MFC
questioncareer
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    valerie99
    wrote on last edited by
    #1

    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();

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups