Bug: Print Selected fails |
Post Reply |
Author | |
Algae
Senior Member Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
Post Options
Thanks(0)
Posted: 07 August 2012 at 8:17pm |
With Selected radio button set in the Print dialog the selection is ignored and the entire document prints anyhow.
During trace in OnPreparePrinting: There ARE selected rows. m_bPrintSelection is TRUE. BOOL CXTPReportView::OnPreparePrinting(CPrintInfo* pInfo) { if (GetReportCtrl().IsIconView()) { GetReportCtrl().SetIconView(FALSE); m_bSwitchMode = TRUE; } m_bShowRowNumber = GetReportCtrl().IsShowRowNumber(); GetReportCtrl().ShowRowNumber(FALSE); if (GetReportCtrl().GetSelectedRows()->GetCount() > 0) pInfo->m_pPD->m_pd.Flags &= ~PD_NOSELECTION; pInfo->m_bDirect = m_bPrintDirect; // default preparation if (!DoPreparePrinting(pInfo)) return FALSE; m_bPrintSelection = pInfo->m_pPD->PrintSelection(); return TRUE; } This is reproducible in the ReportSample. Any chance this can be fixed? Thanks! Static unicode build. Toolkit version 15.3.1 Visual Studio 10.0 Win 7 X 64 professional. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |