Word 2010 Ribbon toggle button page size feedback

For a Word template I am developing a custom ribbon for end-user ease of use and to protect the structure of the document. There is one issue I am currently running into for which I cannot find a solution.
It started with a footer image which needs to be rescaled with the page width (page size and orientation) while retaining its aspect ratio. Apparently this is not possible without VBA (tried fill image for shape and set relative width, but that leaves
the height fixed), so now the idea is to get a pull-down menu with toggle buttons for page size and orientation and change the image size using a macro. The options are A4 portrait, A4 landscape, A3 portrait and A3 landscape. The problem now is how
to get the run-time feedback of page size and orientation to highlight the page setup of the active section, like the built-in size and orientation buttons.
Hopefully this can be done.

Hi AlexFolmer,
Sorry for the delay.
>> Create a custom ribbon menu with buttons to select the paper size, this can be done without too much effort. However, if this is to be implemented I would like the button representing the current paper size/layout to be highlighted in the same way
as the Word native paper size/orientation buttons do
Do you mean that you want to create a custom ribbon menu for user to select the Page size, and when you click the ribbon button, the current page size could be highlight. In my option, you could do as below:
1.  Add a Combobox into the custom ribbon, set the items with “Item1”, “Item2”
2. Add event to comboBox1_TextChanged, key code like below:
private void comboBox1_TextChanged(object sender, RibbonControlEventArgs e)
if (comboBox1.Text == "Item1")
Globals.ThisDocument.PageSetup.PaperSize = Microsoft.Office.Interop.Word.WdPaperSize.wdPaperA3;
else if (comboBox1.Text == "Item2")
Globals.ThisDocument.PageSetup.PaperSize = Microsoft.Office.Interop.Word.WdPaperSize.wdPaperA5;
For combobox, it has the function to highlist the selected item. At this time, we need to solve the issue for opening the document, the combobox would show the current pagesize. You could refer the code below:
private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
if (Globals.ThisDocument.PageSetup.PaperSize == Microsoft.Office.Interop.Word.WdPaperSize.wdPaperA5)
comboBox1.Text = "Item2";
You could refer the link below for more information about Globals.ThisDocument.PageSetup.PaperSize
Reference:
https://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.pagesetup.papersize(v=office.11).aspx
In addition, if you have issues about PageSetup.PaperSize, I will recommend you post a new thread.
The reason why I suggested is:
#1 There would be more community members to discuss the question.
#2 For people who have the similar question, it would be easier for them to find the answer from a specific thread.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Word 2010 Field Code makes page header disappear

    Hi,
    I am working on converting some word 2003 documents to Word 2010, but we found that the behavior of field code seems different in word 2010. We use field codes in a page to embed postscript command such that printer can pick up a correct paper tray. The
    command is like this:
    PRINT \p page "grestore matrix currentmatrix <</MediaType (NORM) /MediaColor (white)>>setpagedevice setmatrix gsave"  \* MERGEFORMAT
    But I found that when there is a field code on the top of a page and the page has header defined on it, the header will not be printed out, just like the field code "kick out" the header. I try the word advance option "Print PostScrit over
    text" but it does not work, If use this option, the field code seems occupy one row and the entire content will roll over more than 1 page.
    Does any professional encounter this problem? Any solution can be shared with me?
    Many thanks for your advice,
    Ray

    Hi
    Based on our test, this may be a by-designed feature. If you want more details, you may select Microsoft Advisory Services option. For specific information about the types of Advisory Services available, visit the
    http://support.microsoft.com/gp/advisoryservice web page. 
    Regards,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"
    Hi George,
    That means you can reproduce our problem in your testing?
    Thanks,
    Ray

  • HP laserjet 400 M401 dne will not work with Word 2010 paper source other pages

    HP laserjet 400 M401 dne connected via USB to Dell 980 with Windows 8.1 (64 bit) using HP laserjet 400M401 PCL 6 class driver. In Word 2010 Go to print settings and paper tab.  The printer has two trays set first page  option to one tray and "other pages" to the other tray and it will always print all pages to the first page option.  All paper tray settings on the printer to automatic and letter and plain.  If set the printer setting to tray 2 and the word setting for other pages to tray 1 that does not help either. Unable to find a setting scenario where the other pages will print to another tray.

    Hi Travis,
    This sounds more like a Graphic Driver or Graphics Card problem. You might try switching out the Graphic Card if that is possible on the system.
    Another outside possibility might be a corrupt user profile, so you could create a different profile on the machine and try it. However, my guess would be the Graphics Card is failing.
    Are you also certain there are no other Office add-ins loaded that might be causing this. Start Word in Safe Mode and see if this clears the problem. If it does, then systematically disable add-ins one at a time until the culprit is found.
    Hope this helps
    Kind Regards, Rich ... http://greatcirclelearning.com

  • Problems retaining page size when converting MS WORD 2007 doc to PDF

    I am having a problem converting Word documents that are not standard page size to a PDF. When I do the conversion, the PDF is resized to 8.5 x 11, even though the original WORD doc was 5.5 x 8.5
    This happens even when I go into the Acrobat Preferences and change the default page size to 5.5 x 8.5.
    The worst of it is, it does not happen with everyone who uses a particular computer here. It happens to some, but not to others.
    Does anyone have any experience with this?
    Thanks.

    It's happening the same way on several different computers here.
    Everyone logs in with their own userid on each machine. We are all working with the same MS WORD documents. These documents are non-standard sizes -- 6 x 9, or 5.5 x 8.5.
    Everyone uses the same version of Acrobat Professional, and selects "Convert to PDF from file".
    For some people, the PDF is created from the Word doc, and the original page size is retained. This is what we want.
    However, for others, the PDF is created as 8.5 x 11, no matter what the original size of the document was. No amount of fiddling with the default page size, in either Acrobat or Word, changes this.
    It is driving me crazy, and I was hoping that at least one other person on the planet has come across this problem. Is this an Adobe or a Microsoft problem? Could it be a Windows registry setting?
    Advice is appreciated!

  • Adobe 9 Pro PROBLEM with Word 2010

    I upgradedd to Office 2010 Suite,  Purchased Adobe 9 Pro
    and installed it after I installed Office 2010.  Adobe does not show in the
    Word 2010 ribbon.  Called ADOBE they say they do not support ADOBE 9 and Office 2010.  HELP

    We are a training institution using the latest Microsoft Office Pro (2010) and Creative Suite Design Premium (CS5) suites.
    Pdfmaker has been a key part of the PDF Basics syllabus for some time and to have to wait till the end of 2011 for a solution (Creative Suite 6?) is a large inconvenience.
    Given that Adobe are still selling Acrobat 9 as a “current” product as part of the suites, I believe that a free upgade to Acrobat 9.xx that has the functionallity restored should be in order, rather than being told that “ps and by the way … the product that you bought TODAY doesn’t work and possibly never will unless you upgrade”!
    Spoke to Adobe customer support about this yesterday and their response was to downgrade to Office 2007 if pdfmaker is that important – a fairly arrogant approach.
    This is an Adobe problem, not Microsoft, as they are the 3rd party providing the plug-in. (Adobe are quick to point this out when it comes to Photoshop plug-ins.)
    As we advertise using the packaged suites upgrading an individual product outside of the automatic updates is not an option.

  • Does the 932C HP printer with 2 sided printing accessory work with window 7 and office word 2010?

    (model#C6463A-double side, printing accessory), for the HP 923C printer?  Is it real slow printing?  Does it flip by itself or do I have to flip it? Also will the printer with the accessory work with windows 7 and office word 2010 to type 4 pages per sheet, like a book? Thanks and please help me!

    Hi @Happyforhelp 
    I suspect your question would be better answered in the HP Enterprise Business Community, as your HP Printer is a commercial model.
    My technical expertise is with consumer products and software, I am sure the commercial folks would be happy to help if you re-post your question for them to answer. The HP Enterprise Business Community is an HP Forum designed for the Commercial and Enterprise customers to help one another. I am sure you will find some HP folks there to help too.
    Click here to view the Printing and Digital Imaging. When the page opens you will see the option to 'Log in' or 'Register Now' on the right. The commercial forums are separate from the consumer boards, thus you will need to register if you don't already have a commercial account.
    You may find the HP Deskjet 930/932c Printer series page helpful while you wait for somebody in the commercial Forum to respond to your inquiry.
    Best of luck.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • RH9 -  Import Word 2010 - Bookmarks not working

    We use Technical Communications Suite 3 with Robohelp 9 HTML.
    I import a Word 2010 doc (about 400 pages) and generate Microsoft HTML help.
    In the Word document we have cross-references to headings and bookmarks. The bookmarks work in Word, they work when I convert the Word Doc to a PDF using Adobe Acrobat X, however when I import the document into Robohelp 9 HTML they do not work.
    The cross-references to headings work but the ones to bookmarks end up with href="".
    I can edit the html and manually put in the href ="filename#bookmark" and it works but I want it to convert automatically upon import. The booksmarks in the word document read "(see page xyz)", where the xzy is the cross-reference to the bookmark, using a pagenumber field, so that in a printed document the user sees the page number and in the PDF, Word Doc, etc. and hopefully in the chm they can just click on the link.
    Any help would be appreciated.
    Thanks,
    david

    Greetings,
    Thanks for the comments. At your suggestion, I was able to get it to work in a small project using a 3-4 page Word document. However it still would not work in my larger project. I noticed that in the large project there were bookmarks that did work to a point in the document andintermittent there after. I went into the Word document to the first failure and re-inserted a new bookmark with the same name hoping it would have a positive result. The results were the same.
    However when I inserted a bookmark with a different name, RoboHelp9 was able to recognize the bookmark and would convert to a link. I went through the Word document and created new bookmarks for the ones that did not work (a big task indeed). Now I am able to use the Word document as the source rather than having to edit the HTML in RoboHelp. This is good. Now only if I can get the footnotes to behave the same way....
    Granted, I don’t know why a set of the original bookmarks were not working when they worked in other format conversions (Acrobat -> pdf, Word->HTML, XPS), but I can move on. Possibly it has something to do with Window 7 x64….
    But, thanks for the input; it put me on a workable path.
    Thanks again,
    David

  • Windows 7 Word 2010 with EPS A4 Acrobat X Pro Paper Size Issue

    I'm running into the following issue trying to create a PDF.
    Word 2010 A4 page size. Document has some Illustrator EPS images used in it.
    When I go to make the PDF using Acrobat from the top menu and then Create PDF, the page size of the PDF is A4, but the color is the low res bit map preview look. Not acceptable color, all colors converted to CMYK, but the EPS files have incorrect color values.
    When I use File Print Acrobat PDF, the color is correct, but it reduces the pages to 8-1/2 x 11. Every setting I can find is calling for a A4 page size. This way the colors are left as the original files CMYK + Pantone colors.
    I spent 2-1/2 hours with Adobe on this and they had no solution.
    We have tried different Default Settings and no difference.
    The Adobe PDF Page Size: is A4.
    If we make the page size A3 then it generates a A3 size PDF.
    When I was running XP with Word 2003 and Acrobat 9 Pro I didn't run in to this problem.
    Any ideas?
    Thanks

    Anyone have any ideas?

  • I am attempting to print a number of DL size envelopes using Word 2010 and Excel2010 on a HP Officej

    I am attempting to print a number of DL size envelopes using Word 2010 and Excel 2010 on a HP Officejet 6500A Plus printer in Operating system Windows 7. Using the mail merge facility the printer reports a paper mismatch. Word does not appear to have envelope DL size in its list of paper sizes only something called envelope #10. The Print driver software when I run out of stationery asks me to load more stationery and hit the OK button.
    Questions
    1. How do I add envelope DL size to Word 2010
    2. Where is the Officejet 6500A Plus OK button
    3. Has this problem been experienced by others
    Regards

    I am having the same problem does anyone have an answer there are many having the same problem

  • Is there a way to modify chamfer size on toggle buttons?

    I am using LabWindows/CVI 2010 on Windows 7 for a client's application.  Is there a technique to change the chamfer size on a standard toggle button?  I do not see an attribute, or any other settable item, but maybe I missed something.
    Thanks.

    Hello ryk,
    Unfortunately, there isn't an attribute or a setting that allows you to change the angle of the corners (chamfer size) on the toggle button or other button controls (including picture buttons).
    This is a predefined appearance setting of various LabWindows/CVI controls.
    Best regards,
    - Johannes

  • How to reserve the page size when exporting to MS Excel 2010

    Hello. I have a report which exports to MS Excel 2010. I applied the page size as legal in Crystal Report and would like to use the same page size in Excel
    However, MS Excel print preview says the page size is letter.
    How could I keep the same page size in Excel as I applied in Crystal Report. We have a lot of business reports and would like to avoid applying page setting manually in Excel when users print them out each time.
    Thank you.

    Hi Christine
    I am in the process of writing a doc on the different options in CR and the "No Printer" option sis one of those. Seeing this post, made me wonder as this looked like a questionable behavior. My testing does not support your observations. Now, I did a very simple test;
    Created a report, set "No Printer", set the paper size and legal orientation. Exported to XLS - any format, and the export maintained legal paper size in all instance. I did a few other variations, but I can never get the report to export anything other than Landscape.
    Can you  please let me know the version of CR you are using?
    You may also want to attach the report here with saved data (to attach rename the rpt to txt, then in the reply hit on the "Use advanced editor" link and attach.
    BTW.; I am using CR 2013.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Can't open Pages files from iPad in Word 2010 on PC

    I have not been able to open any files created on my iPad (iOS 6.0.1) with Apple Pages in Microsoft Word 2010 on Windows XP Pro and hope someone can suggest a solution.
    I am emailing the files as attachments (.docx files)  When I try to open the file on my PC, I get an error message when I open them in Word that says:
    Word was unable to read this docuemnt.
    Try one or more of the following:
    * Open and repair the file.
    * Open the file with the Text Recovery converter. (C:\Users\...\name of file.doc)
    In addition, I tried to open the .docx file in Openoffice.org 3.4.1 and it got a read error.
    Any suggestions? Is there any kind of plug-in/add-in for MS Word 2010 that would correct the problem?
    Thanks,
    Rich
    Additional: Pages was purchased today from the App store; iPad is Gen4 a couple days old

    So...I have played with it more.  Simple documents work most of the time.  But if I take a more complex doc to Pages, edit it and save it as a Word doc then trasnfer it back to  PC or Mac it will fail to open.
    Would be nice if I could trust the App.  WIll mess more with it but it is very frustrating.
    Rich

  • Adobe Acrobat 9 Pro adding a blank page on conversion from Word 2010

    Hi, I'm hoping someone here can help.  I'm converting a Word 2010 document to PDF using Adobe Acrobat 9 Pro (version 9.5.4).  On conversion to PDF, a blank page is being added, throwing the entire report off.  In word, there is a Section Break (Next Page) at the end of the first page, and the text continues on the second.  On conversion, it is after this section break that the blank page apears (i.e., between pages 1 and 2 of the document).  I've been back and forth through the document, tried to use a Continuous Section Break instead (Word just converts it to a page break again), making sure there's only one break, etc., and cannot for the life of me figure out how to fix this problem.  Any ideas?
    Thanks

    Hello,
    I'm sorry you're having trouble with Acrobat. Unfortunately,
    these forums are specific to the
    Acrobat.com website and its set of hosted services, and do
    not cover the Acrobat family of desktop products.
    Any questions related to the Acrobat family of desktop
    products would be best suited in the Acrobat Forums:
    Link to
    Acrobat Forums
    Thanks!
    Michelle

  • Blank Page appears after converting MS Word (2010 on Win 7) document to PDF using Adobe Acrobat XI

    Hi,
    Even after updating to the latest version of Adobe Acrobat Pro XI (11.0.2). While converting a MS Word 2010 .docx format document to .pdf, the cover page with text, image and background color, appears blank with only the background color.
    Apperciate if someone can give me a resolution for this issue.
    Best Regards

    The coverpage gets converted in Acrobat.com cloud service. Is Abobe going to fix this bug in the Acrobat XI version too?

  • Word 2011 for Mac Issue with Custom Page Size

    I have installed Microsoft Office 2011 for Mac on my brand new iMac.  I'm using Microsoft Word 2011 for Mac and I have opened the "Word Publishing Layout" template (this is essentially Microsoft Publisher).  I'm trying to set up custom page sizes by performing the following steps.  I go to File --> Page Setup and use the following settings:
    1. Settings: Page Attributes
    2. Format For: Any Printer
    3. Paper Size:  I choose "Manage Custom Sizes"
    4. I create a 24x36 page and save it
    When I do this, Word 2011 (and Word 2008) for Mac will only go to a maximum of 22 inches wide and 22 inches in height.  Is there any way around this?  I need the big sizes to do digital proofs for my business.  I don't want to scale down to 12x18 (essentially cutting the proof by 50%) because when I import it into my other program that can accommodate any size document, I have to do a lot of manual work to get things back to scale.  Thanks in advance for your help.  If we can figure this out, I'll be grateful.
    AC

    Please re-post on the Office for Mac Product Forums

Maybe you are looking for

  • Some InDesign CS5.5 files won't open until force quit and relaunch the application (Mac) ?

    Some InDesign CS5.5 files won't open until force quit and relaunch application (Mac). It seems that this occurs rarely, but once it does it on a file, it happes every time. Any suggestions?

  • 3G Phone Trouble

    Alright, around 12 noon today my phone started acting up for no reason whatsoever. I shrugged it off put it in my pocket and went about my business. Later I tried to check the time but the screen wouldnt light up, work, or whatever you call it. When

  • Static / Hiss Audio Issue

    Lately , I have been facing an issue with my audio , ever since i moved to 10.8.1 , i have been getting static on all audio - Youtube , Itunes extra , i tried everything from formatting , downgrading to 10.7.4 to changing my headphones , Please help

  • Credit card sales

    how are credit card sales are controlled under SAP FI_AR? Are there any commercial Interfaces available in the market?  As a Financial consultant how do you deal the situation? thanks, aruna.

  • De-esser for GarageBand 4.1.2

    Hi team, I'm doing some vocal recording (mono - spoken word) and I'm looking for a de-esser plugin for GarageBand. I've tried ducking the offending frequency in the graphic EQ and achieved some success, but it has a tendency to leave the overall qual