// Imprimante choisie = PrintDialog1->ComponentIndex; // Index de l'imprimante selectionnée
// de_la_page = PrintDialog1->FromPage; // selection manuelle de la page xx
// jusque_la_page = PrintDialog1->ToPage; // selection manuelle jusque la page xx
//premiere_page = PrintDialog1->MinPage; // premiere page
//derniere_page = PrintDialog1->MaxPage; // derniere page
PrintDialog1->ToPage = 1; //StringGrid1->RowCount * nb_imp_colonnes;
PrintDialog1->MaxPage = 1; //StringGrid1->RowCount * nb_imp_colonnes;
/*
/////////////////////
// zone d'impression
prAllPages le bouton radio "Tout" est selectionné.
prSelection le bouton radio "Selection" est selectionné.
prPageNums le bouton radio "Pages" est selectionné.
ces trois variables s'utilisent avec "switch (PrintDialog->PrintRange)" .... "case prAllPages"
Prntr->Orientation=poLandscape;
poPortrait The job prints vertically on the page.
poLandscape The job prints horizontally on the page.
// liste des imprimantes presentes dans un ListBox
ListBox1->Items = Printer()->Printers;
/////////////
poDisablePrintToFile Disables (grays) the Print To File Check box. (Applicable only if the poPrintToFile flag is set.)
poHelp Displays a Help button in the dialog. May not work in some versions of Windows 95.
poPageNums Enables the Pages radio button, allowing the user to specify a page range.
poPrintToFile Displays a Print To File check box in the dialog.
poSelection Enables the Selection radio button, allowing the user to print selected (highlighted) text.
poWarning Generates a warning message if the user tries to send a job to an uninstalled printer.
*/
Partager