Bonjour,
j aurais souhaite savoir s il etait possible de lancer une impression en format paysage sur pda (a part l'utilisation d'un logiciel payant):
Sur MSDN, j ai trouve ce code mais qui ne passe pas dans mon appli PDA:
public void Printing() {
try {
streamToPrint = new StreamReader (filePath);
try {
printFont = new Font("Arial", 10);
PrintDocument pd = new PrintDocument();
pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
pd.PrinterSettings.PrinterName = printer;
// Set the page orientation to landscape.
pd.DefaultPageSettings.Landscape = true;
pd.Print();
}
finally {
streamToPrint.Close() ;
}
}
catch(Exception ex) {
MessageBox.Show(ex.Message);
}
}
Existe t il une alternative svp?
Merci.