<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: code for conversion from portrait to landscape. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-conversion-from-portrait-to-landscape/m-p/1132679#M112094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhir,&lt;/P&gt;&lt;P&gt;Please find the macro recording for converting from portrait to landscape.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to impliment the same in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   With ActiveDocument.Styles(wdStyleNormal).Font&lt;/P&gt;&lt;P&gt;        If .NameFarEast = .NameAscii Then&lt;/P&gt;&lt;P&gt;            .NameAscii = ""&lt;/P&gt;&lt;P&gt;        End If&lt;/P&gt;&lt;P&gt;        .NameFarEast = ""&lt;/P&gt;&lt;P&gt;    End With&lt;/P&gt;&lt;P&gt;    With ActiveDocument.PageSetup&lt;/P&gt;&lt;P&gt;        .LineNumbering.Active = False&lt;/P&gt;&lt;P&gt;        .Orientation = wdOrientPortrait&lt;/P&gt;&lt;P&gt;        .TopMargin = CentimetersToPoints(2.54)&lt;/P&gt;&lt;P&gt;        .BottomMargin = CentimetersToPoints(2.54)&lt;/P&gt;&lt;P&gt;        .LeftMargin = CentimetersToPoints(3.17)&lt;/P&gt;&lt;P&gt;        .RightMargin = CentimetersToPoints(3.17)&lt;/P&gt;&lt;P&gt;        .Gutter = CentimetersToPoints(0)&lt;/P&gt;&lt;P&gt;        .HeaderDistance = CentimetersToPoints(1.27)&lt;/P&gt;&lt;P&gt;        .FooterDistance = CentimetersToPoints(1.27)&lt;/P&gt;&lt;P&gt;        .PageWidth = CentimetersToPoints(21.59)&lt;/P&gt;&lt;P&gt;        .PageHeight = CentimetersToPoints(27.94)&lt;/P&gt;&lt;P&gt;        .FirstPageTray = wdPrinterDefaultBin&lt;/P&gt;&lt;P&gt;        .OtherPagesTray = wdPrinterDefaultBin&lt;/P&gt;&lt;P&gt;        .SectionStart = wdSectionNewPage&lt;/P&gt;&lt;P&gt;        .OddAndEvenPagesHeaderFooter = False&lt;/P&gt;&lt;P&gt;        .DifferentFirstPageHeaderFooter = False&lt;/P&gt;&lt;P&gt;        .VerticalAlignment = wdAlignVerticalTop&lt;/P&gt;&lt;P&gt;        .SuppressEndnotes = False&lt;/P&gt;&lt;P&gt;        .MirrorMargins = False&lt;/P&gt;&lt;P&gt;        .TwoPagesOnOne = False&lt;/P&gt;&lt;P&gt;        .BookFoldPrinting = False&lt;/P&gt;&lt;P&gt;        .BookFoldRevPrinting = False&lt;/P&gt;&lt;P&gt;        .BookFoldPrintingSheets = 1&lt;/P&gt;&lt;P&gt;        .GutterPos = wdGutterPosLeft&lt;/P&gt;&lt;P&gt;    End With&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub testmacro()&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;' testmacro Macro&lt;/P&gt;&lt;P&gt;' Macro recorded 12/29/2005 by venugopal.yelishetty&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub test()&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;' test Macro&lt;/P&gt;&lt;P&gt;' Macro recorded 12/29/2005 by venugopal.yelishetty&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;    With ActiveDocument.Styles(wdStyleNormal).Font&lt;/P&gt;&lt;P&gt;        If .NameFarEast = .NameAscii Then&lt;/P&gt;&lt;P&gt;            .NameAscii = ""&lt;/P&gt;&lt;P&gt;        End If&lt;/P&gt;&lt;P&gt;        .NameFarEast = ""&lt;/P&gt;&lt;P&gt;    End With&lt;/P&gt;&lt;P&gt;    With ActiveDocument.PageSetup&lt;/P&gt;&lt;P&gt;        .LineNumbering.Active = False&lt;/P&gt;&lt;P&gt;        .Orientation = wdOrientLandscape&lt;/P&gt;&lt;P&gt;        .TopMargin = CentimetersToPoints(3.17)&lt;/P&gt;&lt;P&gt;        .BottomMargin = CentimetersToPoints(3.17)&lt;/P&gt;&lt;P&gt;        .LeftMargin = CentimetersToPoints(2.54)&lt;/P&gt;&lt;P&gt;        .RightMargin = CentimetersToPoints(2.54)&lt;/P&gt;&lt;P&gt;        .Gutter = CentimetersToPoints(0)&lt;/P&gt;&lt;P&gt;        .HeaderDistance = CentimetersToPoints(1.27)&lt;/P&gt;&lt;P&gt;        .FooterDistance = CentimetersToPoints(1.27)&lt;/P&gt;&lt;P&gt;        .PageWidth = CentimetersToPoints(27.94)&lt;/P&gt;&lt;P&gt;        .PageHeight = CentimetersToPoints(21.59)&lt;/P&gt;&lt;P&gt;        .FirstPageTray = wdPrinterDefaultBin&lt;/P&gt;&lt;P&gt;        .OtherPagesTray = wdPrinterDefaultBin&lt;/P&gt;&lt;P&gt;        .SectionStart = wdSectionNewPage&lt;/P&gt;&lt;P&gt;        .OddAndEvenPagesHeaderFooter = False&lt;/P&gt;&lt;P&gt;        .DifferentFirstPageHeaderFooter = False&lt;/P&gt;&lt;P&gt;        .VerticalAlignment = wdAlignVerticalTop&lt;/P&gt;&lt;P&gt;        .SuppressEndnotes = False&lt;/P&gt;&lt;P&gt;        .MirrorMargins = False&lt;/P&gt;&lt;P&gt;        .TwoPagesOnOne = False&lt;/P&gt;&lt;P&gt;        .BookFoldPrinting = False&lt;/P&gt;&lt;P&gt;        .BookFoldRevPrinting = False&lt;/P&gt;&lt;P&gt;        .BookFoldPrintingSheets = 1&lt;/P&gt;&lt;P&gt;        .GutterPos = wdGutterPosLeft&lt;/P&gt;&lt;P&gt;    End With&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close the issue with appropriate points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Dec 2005 17:48:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-29T17:48:30Z</dc:date>
    <item>
      <title>code for conversion from portrait to landscape.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-conversion-from-portrait-to-landscape/m-p/1132678#M112093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody, i cerated one program in ole that creates certificates in msword, the output is comming in portrait , but i need in landscape, could any one tell the code or any method or property for that, very urgent.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 16:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-conversion-from-portrait-to-landscape/m-p/1132678#M112093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T16:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: code for conversion from portrait to landscape.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-conversion-from-portrait-to-landscape/m-p/1132679#M112094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhir,&lt;/P&gt;&lt;P&gt;Please find the macro recording for converting from portrait to landscape.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to impliment the same in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   With ActiveDocument.Styles(wdStyleNormal).Font&lt;/P&gt;&lt;P&gt;        If .NameFarEast = .NameAscii Then&lt;/P&gt;&lt;P&gt;            .NameAscii = ""&lt;/P&gt;&lt;P&gt;        End If&lt;/P&gt;&lt;P&gt;        .NameFarEast = ""&lt;/P&gt;&lt;P&gt;    End With&lt;/P&gt;&lt;P&gt;    With ActiveDocument.PageSetup&lt;/P&gt;&lt;P&gt;        .LineNumbering.Active = False&lt;/P&gt;&lt;P&gt;        .Orientation = wdOrientPortrait&lt;/P&gt;&lt;P&gt;        .TopMargin = CentimetersToPoints(2.54)&lt;/P&gt;&lt;P&gt;        .BottomMargin = CentimetersToPoints(2.54)&lt;/P&gt;&lt;P&gt;        .LeftMargin = CentimetersToPoints(3.17)&lt;/P&gt;&lt;P&gt;        .RightMargin = CentimetersToPoints(3.17)&lt;/P&gt;&lt;P&gt;        .Gutter = CentimetersToPoints(0)&lt;/P&gt;&lt;P&gt;        .HeaderDistance = CentimetersToPoints(1.27)&lt;/P&gt;&lt;P&gt;        .FooterDistance = CentimetersToPoints(1.27)&lt;/P&gt;&lt;P&gt;        .PageWidth = CentimetersToPoints(21.59)&lt;/P&gt;&lt;P&gt;        .PageHeight = CentimetersToPoints(27.94)&lt;/P&gt;&lt;P&gt;        .FirstPageTray = wdPrinterDefaultBin&lt;/P&gt;&lt;P&gt;        .OtherPagesTray = wdPrinterDefaultBin&lt;/P&gt;&lt;P&gt;        .SectionStart = wdSectionNewPage&lt;/P&gt;&lt;P&gt;        .OddAndEvenPagesHeaderFooter = False&lt;/P&gt;&lt;P&gt;        .DifferentFirstPageHeaderFooter = False&lt;/P&gt;&lt;P&gt;        .VerticalAlignment = wdAlignVerticalTop&lt;/P&gt;&lt;P&gt;        .SuppressEndnotes = False&lt;/P&gt;&lt;P&gt;        .MirrorMargins = False&lt;/P&gt;&lt;P&gt;        .TwoPagesOnOne = False&lt;/P&gt;&lt;P&gt;        .BookFoldPrinting = False&lt;/P&gt;&lt;P&gt;        .BookFoldRevPrinting = False&lt;/P&gt;&lt;P&gt;        .BookFoldPrintingSheets = 1&lt;/P&gt;&lt;P&gt;        .GutterPos = wdGutterPosLeft&lt;/P&gt;&lt;P&gt;    End With&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub testmacro()&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;' testmacro Macro&lt;/P&gt;&lt;P&gt;' Macro recorded 12/29/2005 by venugopal.yelishetty&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub test()&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;' test Macro&lt;/P&gt;&lt;P&gt;' Macro recorded 12/29/2005 by venugopal.yelishetty&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;    With ActiveDocument.Styles(wdStyleNormal).Font&lt;/P&gt;&lt;P&gt;        If .NameFarEast = .NameAscii Then&lt;/P&gt;&lt;P&gt;            .NameAscii = ""&lt;/P&gt;&lt;P&gt;        End If&lt;/P&gt;&lt;P&gt;        .NameFarEast = ""&lt;/P&gt;&lt;P&gt;    End With&lt;/P&gt;&lt;P&gt;    With ActiveDocument.PageSetup&lt;/P&gt;&lt;P&gt;        .LineNumbering.Active = False&lt;/P&gt;&lt;P&gt;        .Orientation = wdOrientLandscape&lt;/P&gt;&lt;P&gt;        .TopMargin = CentimetersToPoints(3.17)&lt;/P&gt;&lt;P&gt;        .BottomMargin = CentimetersToPoints(3.17)&lt;/P&gt;&lt;P&gt;        .LeftMargin = CentimetersToPoints(2.54)&lt;/P&gt;&lt;P&gt;        .RightMargin = CentimetersToPoints(2.54)&lt;/P&gt;&lt;P&gt;        .Gutter = CentimetersToPoints(0)&lt;/P&gt;&lt;P&gt;        .HeaderDistance = CentimetersToPoints(1.27)&lt;/P&gt;&lt;P&gt;        .FooterDistance = CentimetersToPoints(1.27)&lt;/P&gt;&lt;P&gt;        .PageWidth = CentimetersToPoints(27.94)&lt;/P&gt;&lt;P&gt;        .PageHeight = CentimetersToPoints(21.59)&lt;/P&gt;&lt;P&gt;        .FirstPageTray = wdPrinterDefaultBin&lt;/P&gt;&lt;P&gt;        .OtherPagesTray = wdPrinterDefaultBin&lt;/P&gt;&lt;P&gt;        .SectionStart = wdSectionNewPage&lt;/P&gt;&lt;P&gt;        .OddAndEvenPagesHeaderFooter = False&lt;/P&gt;&lt;P&gt;        .DifferentFirstPageHeaderFooter = False&lt;/P&gt;&lt;P&gt;        .VerticalAlignment = wdAlignVerticalTop&lt;/P&gt;&lt;P&gt;        .SuppressEndnotes = False&lt;/P&gt;&lt;P&gt;        .MirrorMargins = False&lt;/P&gt;&lt;P&gt;        .TwoPagesOnOne = False&lt;/P&gt;&lt;P&gt;        .BookFoldPrinting = False&lt;/P&gt;&lt;P&gt;        .BookFoldRevPrinting = False&lt;/P&gt;&lt;P&gt;        .BookFoldPrintingSheets = 1&lt;/P&gt;&lt;P&gt;        .GutterPos = wdGutterPosLeft&lt;/P&gt;&lt;P&gt;    End With&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close the issue with appropriate points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2005 17:48:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-conversion-from-portrait-to-landscape/m-p/1132679#M112094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-29T17:48:30Z</dc:date>
    </item>
  </channel>
</rss>

