Custom Ribbon Problem in Runtime

R

Richard Kohler

I have a customer ribbon that is dynamically created on the fly based upon
the user's profile. Everything works great except for one item. I want the
user to be able to e-mail a report while in print preview. Unfortunately, the
section of the ribbon that normally displays the mail icon is blank. This
only happens in the runtime version that I deploy to all users. Any help
would be appreciated.

RK
 
A

Albert D. Kallal

Simply write some code to do this:

Add the follwing group to your existing custom ribbion for reports

<group id="Options" label="Report Options">
<button id="button1" label="Email" onAction="=AskReportSend()"/>
</group>

So, the abov will call your VBA code.

That code can look like:

Public Function AskReportSend()

' this is the email option included on every report
Dim rptActiveReport As Report
Dim strEmail As String
Dim strSubject As String
Dim strBodyText As String

strSubject = ""
strBodyText = ""
strEmail = ""

Set rptActiveReport = Screen.ActiveReport
DoCmd.SendObject acSendReport, rptActiveReport.Name, _
acFormatRTF, strEmail, , , rptActiveReport.Caption, strBodyText,
True


End Function
 
R

Richard Kohler

Thanks Albert, I will give this a try. However, I do believe this is a
runtime bug of some sort.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top