Home > Software engineering >  Vc6 set in the excel printed page center problems
Vc6 set in the excel printed page center problems

Time:11-07


Vc6 set in the excel center printed page, and code PageSetup page=sheet. GetPageSetup (); The VARIANT n=(_variant_t) 1; Type//appear problem, cannot be transformation, how to change?
Page. SetFitToPagesWide (vt);
Thank you very much!

CodePudding user response:

Page. SetFitToPagesWide (1 l);

CodePudding user response:

reference 1st floor zgl7903 response:
page. SetFitToPagesWide (1 l);
compiled through, however, the same problem, cannot transformation type, whether it is short or long,

CodePudding user response:

To the VARIANT vt;
Vt. LVal=1;
Page. SetFitToPagesWide (vt);
But don't work,

CodePudding user response:

Can't, by setting the left and right margins to implement,
  • Related