I have just tried printing on the CutePDF printer. Instead of asking for the output filename, C::B blocks forever showing a busy animation as mouse pointer.
Name : Code::Blocks
Version : svn-r12723
SDK Version : 2.16.0
Scintilla Version : 3.7.5
OS : Windows 7 (build 7601, Service Pack 1), 64-bit edition
The problem is in cbEditorPrintout::GetPageInfo(), virtual printers are returning a 0 page size in line 99, so m_printRect is invalid and the program enters this loop forever:
while (HasPage(*maxPage))
{
//Manager::Get()->GetLogManager()->DebugLog(_T("CountPages: PageCount %d , m_printed %d"), m_pPageSelStart->GetCount(), m_printed);
m_printed = m_TextControl->FormatRange (0, m_printed, m_SelEnd,
dc, dc, m_printRect, m_pageRect);
m_pPageSelStart->Add(m_printed);
*maxPage += 1;
}
EDIT: today the CutePDF printer works, but MS XPS printer still fails. MSW10 built-in PDF printer also works OK.