Print Page | Close Window

Bug: Print Selected fails

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=20023
Printed Date: 24 September 2024 at 2:37pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug: Print Selected fails
Posted By: Algae
Subject: Bug: Print Selected fails
Date 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.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net