Export to PDF Ribbon Button (1 Viewer)

Dreamweaver

Well-known member
Local time
Today, 11:19
Joined
Nov 28, 2005
Messages
2,466
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>
 

Micron

AWF VIP
Local time
Today, 07:19
Joined
Oct 20, 2018
Messages
3,476
dumb question time: it isn't visible when a report is open, or never?
 

Dreamweaver

Well-known member
Local time
Today, 11:19
Joined
Nov 28, 2005
Messages
2,466
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.
 

theDBguy

I’m here to help
Staff member
Local time
Today, 04:19
Joined
Oct 29, 2018
Messages
21,358
Hi. Just a guess but try adding visible = true as an attribute.
 

Micron

AWF VIP
Local time
Today, 07:19
Joined
Oct 20, 2018
Messages
3,476
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.
 

Dreamweaver

Well-known member
Local time
Today, 11:19
Joined
Nov 28, 2005
Messages
2,466

theDBguy

I’m here to help
Staff member
Local time
Today, 04:19
Joined
Oct 29, 2018
Messages
21,358
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

Top Bottom