Export to PDF Ribbon Button

Dreamweaver

Well-known member
Local time
Today, 16:32
Joined
Nov 28, 2005
Messages
2,467
Having loads of fun today
Added the code below to add a export to PDF button but it wont display the button so don't know what I'm doing wrong can anybody point me in the right direction thanks mick


Code:
 <tab id="tabReport" label="Report">
        <group idMso="GroupPrintPreviewPrintAccess" />
        <group idMso="GroupZoom" />
       [COLOR=Blue]<group idMso="PublishToPdfOrEdoc" />[/COLOR]
        <group id="grpExit" label="Close">
           <button idMso="PrintPreviewClose" keytip="c" size="large"/>
        </group>

  </tab>
 
dumb question time: it isn't visible when a report is open, or never?
 
dumb question time: it isn't visible when a report is open, or never?


The options on the default report Ribbon so It should be able to be used if not then I'll code my own.
 
Hi. Just a guess but try adding visible = true as an attribute.
 
If that means the report ribbon displays when a report is open and the control you added is on that ribbon but isn't visible when the ribbon is then I guess I have nothing to offer. Sorry.
 
Tried <group idMso="PublishToPdfOrEdoc" visible = "true"/>
And <group idMso="PublishToPdfOrEdoc" visible = true/>
No Luck Thanks for the help theDBguy


I got the list here https://www.ribboncreator2010.de/Onlinehelp/EN/_2el0osmon.htm


Just noticed the option to print to PDF is in the print dialog so will make a note of that in the help files.
Hi. I just noticed something... rather than use a "group," have you tried using a "button?" Just a thought...


Edit: I just gave it a try, and this worked for me...
Code:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">

  <ribbon startFromScratch="true">

  <tabs>
    <tab id="pdf" label="Report">
      <group id="mygroup" label="PDF or XPS">
        <button idMso="PublishToPdfOrEdoc" size="large" />
      </group>
    </tab>
  </tabs>

  </ribbon>
</customUI>
Hope that helps...
 
Last edited:

Users who are viewing this thread

Back
Top Bottom