/    Sign up×
Community /Pin to ProfileBookmark

selecting report output pdf format

Hi

here’s the script for selecting output in pdf format. when i run page, it gives me error ” Expected ;”

<table>
<tr>
<td><B><FONT STYLE=”width: 100px; font-family : Arial; font-size :
8pt”>Alternate Format:</FONT></B></td>

<td align=”center” valign=”top” id=”PDF”
onclick=”javascript:gCognosViewer.getRV().view Report(‘PDF’);”
class=”toolbarButton”
onmouseover=”document.getElementById(‘PDF’).className=’toolbarButtonOver’;window.status=”;return true;”
onmouseout=”document.getElementById(‘PDF’).className=’toolbarButton’;window.status=”;return true;”>
<img src=”../ps/portal/images/icon_result_PDF_32.gif” width=”30″ height=”29″ alt=”” border=”0″ title=”View in PDF”> </td>
<td><img border=”0″ src=”../qs/images/spacer.gif” width=”2″ height=”2″></td>
</tr>
</table>

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@crh3675Dec 10.2010 — Looks like you have an extra space:


gCognosViewer.getRV().viewReport('PDF');
Copy linkTweet thisAlerts:
@phanicrnauthorDec 13.2010 — i corrected syntx,report opens pdf output in same window,where to say open the ouput in new window.
×

Success!

Help @phanicrn spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...