E' un sistema per creare stampe tipo Cristal Report.
Conversioni da lptreport.c
Inserire powerPrinter al posto di lptreport.c
- LRInit.yChar diventa LRInit.ptRowHeight=
- LRInit.yTitleChar diventa LRInit.ptTitleHeight
LRInit.rMargin.left =TMillToInch(sys.ps.rtMargin.left);
LRInit.rMargin.top =TMillToInch(sys.ps.rtMargin.top);
LRInit.rMargin.right =TMillToInch(sys.ps.rtMargin.right);
LRInit.rMargin.bottom=TMillToInch(sys.ps.rtMargin.bottom);
diventa
LRInit.rMargin.left =TMillToInch(sys.sPageSetupDlg.rtMargin.left);
LRInit.rMargin.top =TMillToInch(sys.sPageSetupDlg.rtMargin.top);
LRInit.rMargin.right =TMillToInch(sys.sPageSetupDlg.rtMargin.right);
LRInit.rMargin.bottom=TMillToInch(sys.sPageSetupDlg.rtMargin.bottom);
- LptReport( diventa PowerPrinter(
LRDispInBox รจ cambiato: Stile e giustificazione
LRBox() va aggiunto in coda lo spessore della linea.
Style
lptReport usava una definizione globale degli stili
LRInit.fBold=TRUE;
Che va sostituita con STYLE_BOLD e altro.
LRFIELDS
LRFIELDS LRfield > PWDFIELD pwdField
Trasformazioni
LRInit.(element) > psPower->(element)
Elementi differenti
iLayStyle = enLayStyle;
LR_LAYTYPE1 > PWD_LAYTYPE1
iLineHorzColor > colLineHorz
ptRowHeight > umRowHeight=pwdUm(PUM_STD,35)
lpFontTitleDefault > pszFontTitleDefault
lpFontBodyDefault > pszFontBodyDefault
psPower->rMargin.left =TMillToInch(sys.sPageSetupDlg.rtMargin.left);
psPower->rMargin.top =TMillToInch(sys.sPageSetupDlg.rtMargin.top);
psPower->rMargin.right =TMillToInch(sys.sPageSetupDlg.rtMargin.right);
psPower->rMargin.bottom=TMillToInch(sys.sPageSetupDlg.rtMargin.bottom);
diventa
psPower->rumMargin.left=pwdUm(PUM_MM,sys.sPageSetupDlg.rtMargin.left);
psPower->rumMargin.top=pwdUm(PUM_MM,sys.sPageSetupDlg.rtMargin.top);
psPower->rumMargin.right=pwdUm(PUM_MM,sys.sPageSetupDlg.rtMargin.right);
psPower->rumMargin.bottom=pwdUm(PUM_MM,sys.sPageSetupDlg.rtMargin.bottom);
lpPrintName > pszDocumentName
HookSubProc > Inclusa nelle notifiche >funcNotify
Funzioni
PowerPrinter(WS_LINK,0,NULL); > pwdRowBegin();
PowerPrinter(WS_REALSET,0,txbFldPtr(psFAT->txbBody,"CODPROD")); > PowerDoc(WS_REALSET,0,txbFldPtr(psFAT->txbBody,"CODPROD"));
PowerPrinter(WS_INSERT,0,NULL); > pwdRowEnd();
Colori
pwdColor(EH_COLOR/RGB())