B
Bitula
Hi All,
I have an urgent problem with PPT 2003 which I was unable to solve since two
days, so now I begin to think this is a bug, though I did not find any
confirmation for this. My problem is, that as a user, whenever I open a ppt
and change (decrease) the width and height of the page in the File/Page Setup
dialog the slides including shapes, images and fonts scale correctly. But
when I do same thing via automation (VB. NET 2005 express editin) most of the
fonts (but not all) scale incorrectly (are too large). Other objects scale
correctly. This happens on slides where there are text in text boxes with
different styles (bold, normal, italic) and different sizes.
Here's the code:
Dim pptPage As PowerPoint.PageSetup
pptPage = ppDestApp.ActivePresentation.PageSetup
With pptPage
oHeight = .SlideHeight
oWidth = .SlideWidth
.SlideWidth = 480
.SlideHeight = 360
End With
pptPage = Nothing
Note, I have a Hungarian Office which prompts page demension in centimeters
if this matters anything and I am on win XP sp2 with latest service packs and
updates.
Please help me,
Marton Bokor
I have an urgent problem with PPT 2003 which I was unable to solve since two
days, so now I begin to think this is a bug, though I did not find any
confirmation for this. My problem is, that as a user, whenever I open a ppt
and change (decrease) the width and height of the page in the File/Page Setup
dialog the slides including shapes, images and fonts scale correctly. But
when I do same thing via automation (VB. NET 2005 express editin) most of the
fonts (but not all) scale incorrectly (are too large). Other objects scale
correctly. This happens on slides where there are text in text boxes with
different styles (bold, normal, italic) and different sizes.
Here's the code:
Dim pptPage As PowerPoint.PageSetup
pptPage = ppDestApp.ActivePresentation.PageSetup
With pptPage
oHeight = .SlideHeight
oWidth = .SlideWidth
.SlideWidth = 480
.SlideHeight = 360
End With
pptPage = Nothing
Note, I have a Hungarian Office which prompts page demension in centimeters
if this matters anything and I am on win XP sp2 with latest service packs and
updates.
Please help me,
Marton Bokor