excel - Axapta V3 - how to access worksheet.pagesetup properties from x++ -


Does anyone know how to use PageSetup appellants of an Excel worksheet via COM from the X + code I can do all the formatting necessary for a custom report but can not use the PageSetup object.

Any suggestions / suggestions would be appreciated.

  # define.xlDialogPageSetup (7) static zero job212 ( Args _args) {COM doc =; // Here is the Excel document COM object com app; Com worksheet; COM page setup; Com temp; Int FituposeWide = 5; Int Fitptigetol = 0; COMVariant cvZoom = COMVariant :: createFromBoolean (wrong); COMVariant cvWide = FitViewWide? COMVariant :: createFromInt (FitupsWide): COMVariant :: createFromBoolean (wrong); Comviriet CVTil = FitTapGetol? COMVariant :: createFromInt (Fitopsplates): COMVariant :: createFromBoolean (wrong); ; App = doc.Application (); Worksheet = app. ActiveSite (); PageSetup = Worksheet.Page set up (); PageSetup.Zoom (cvZoom); PageSetup.FitToPagesWide (cvWide); PageSetup.FitToPagesTall (cvTall); // это для демонстрации того, что получается temp = app.Dialogs (); Temp = temp.Item (#xlDialogPageSetup); Temp.Show ();  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -