Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel: Force update of page-breaks
Message
 
À
06/02/2006 21:08:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01094177
Message ID:
01094394
Vues:
10
This message has been marked as a message which has helped to the initial question of the thread.
Hi Hilmar,

This works for me:
.....
with objExcel.ActiveSheet
      .DisplayPageBreaks =.f.
      .PageSetup.zoom =  60  && or whatever
      .DisplayPageBreaks =.t.
endwith
>After changing the scale factor for printing an Excel sheet (created through Automation), the user still sees the old pagebreaks. After the user does a print preview, the pagebreaks on the main sheet are adjusted, but this is quite awkward a method. How can I force Excel to adjust the pagebreaks immediately?
>
>TIA,
>
>Hilmar.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform