/
bear
/
aot
Обзор
Документация
Войти
/
bear
/
aot
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Source/windows/VisualSynan/SynReport.cpp
19 строк
487 B
sokirko74
distribute over folders
01 дек 2021, 21:21
01 дек 2021, 21:21
9bdfb1a
Код
Авторство
О чём код?
#include "SynReport.h" bool GlobalOpenReport(CString S, CString Name) { CDocTemplate* T = GetReportTemplate(); CReportDoc* pDocument = (CReportDoc*)T->CreateNewDocument(); ASSERT_VALID(pDocument); T->InitialUpdateFrame(T->CreateNewFrame(pDocument, NULL), pDocument, TRUE); pDocument->m_bRTF = false; CRichEditCtrl& C = pDocument->GetView()->GetRichEditCtrl(); pDocument->SetPathName(Name, FALSE); C.SetWindowText (S); //pDocument->InitFonts(); return true; };