Does anyone know if it is possible to use the Jump To URL feature to display
a pdf file?
It seem like it should be possible because I can upload the pdf to a
Reporting Services folder and then use Report Manager to open and display it,
but I can't seem to get it to work in a report. Possibly due to a syntax
problem?...
Thanks,
SteveYes you can do it. I just tried on some word documents that I have deployed.
First, to make sure we are on the same page. You need to bring your PDF file
into your project and deploy it. Next do this:
="javascript:void(window.open('" & Globals!ReportServerUrl &
"?/FolderName/Documentname.pdf','_blank'))"
or if don't want it open in another window do this:
=Globals!ReportServerUrl & "?/SomeFolder/SomeDocument.PDF"
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Steve" <MyNoSpam@.NoSpam.org> wrote in message
news:325FCAA0-0C98-48DE-A50F-28FCC264B48B@.microsoft.com...
> Does anyone know if it is possible to use the Jump To URL feature to
> display
> a pdf file?
> It seem like it should be possible because I can upload the pdf to a
> Reporting Services folder and then use Report Manager to open and display
> it,
> but I can't seem to get it to work in a report. Possibly due to a syntax
> problem?...
> Thanks,
> Steve|||Works great -- very cool. And I will use your open new window trick in a
different application. I was missing the "?".
Regards,
Steve
"Bruce L-C [MVP]" wrote:
> Yes you can do it. I just tried on some word documents that I have deployed.
> First, to make sure we are on the same page. You need to bring your PDF file
> into your project and deploy it. Next do this:
> ="javascript:void(window.open('" & Globals!ReportServerUrl &
> "?/FolderName/Documentname.pdf','_blank'))"
> or if don't want it open in another window do this:
> =Globals!ReportServerUrl & "?/SomeFolder/SomeDocument.PDF"
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Steve" <MyNoSpam@.NoSpam.org> wrote in message
> news:325FCAA0-0C98-48DE-A50F-28FCC264B48B@.microsoft.com...
> > Does anyone know if it is possible to use the Jump To URL feature to
> > display
> > a pdf file?
> >
> > It seem like it should be possible because I can upload the pdf to a
> > Reporting Services folder and then use Report Manager to open and display
> > it,
> > but I can't seem to get it to work in a report. Possibly due to a syntax
> > problem?...
> >
> > Thanks,
> > Steve
>
>
Showing posts with label pdf. Show all posts
Showing posts with label pdf. Show all posts
Friday, March 30, 2012
Jump to URL - Javascript
We are displaying reports in a PDF format through an aspx page.
I have put and URL link in an report as follows to open a new
window(cotaining another report)
="javascript:void(window.open('http://localhost/ReportViewer/ReportFrame.aspx?rptPath=REPORTPATH&args="
& REPORTARGS &
"','GraphDetail','left=50,top=50,width=800,height=580,menubar=no,resizable=yes,scrollbars=Yes,status=yes,toolbar=0'))"
When the report is displayed for the first time...the URL link works fine. I
get an security msg from adobe reader saying document is trying to open this
link ..asks to block or allow...when i click Allow ..the new window
opens(with the report). But when i close this new window and reclick the
link...it does not work.
I have been stuck in this for 4 days now...i am not getting what is the
issue...
The aspx page has frames...but i do not see any issue with that either...i
am tried with a simple aspx page...same issue...i have tried allowing
pop-ups ...etc
I think this is issue with adobe reader ..because if i display the report
in HTML format...the link works fine...opens every time i click it!!!!.
Has anyone has had any similar issues!!!!...
Can anyone help me ...all i want to do is...open a link in new window from
an deployed PDF report ...link is an aspx page with a new detail report.
Thanks.Hi,
my jump to link is similar and working.
my link is like this..
="javascript:" &
IIF(Fields!Acked.Value = 1,"void(0)",
"var sRS='" & Globals!ReportServerUrl &
"';void(window.open(sRS.substring(0,sRS.indexOf('/ReportServer')) +
'/rtreporting/acknowledge.aspx?FilterID=" & Fields!FILTERID.Value &
"&prmServer=" & Fields!SERVER.Value & "&prmStartDate=" &
Format(Parameters!prmDateFrom.Value,"yyyy-MM-dd HH:mm:ss") & "&prmEndDate=" &
Format(Parameters!prmDateTo.Value,"yyyy-MM-dd HH:mm:ss") & "','_blank'))")
can you use Globals!ReportServerUrl instead of localhost.
also try using _blank parameter and make it default size..
"Sunny" wrote:
> We are displaying reports in a PDF format through an aspx page.
> I have put and URL link in an report as follows to open a new
> window(cotaining another report)
> ="javascript:void(window.open('http://localhost/ReportViewer/ReportFrame.aspx?rptPath=REPORTPATH&args="
> & REPORTARGS &
> "','GraphDetail','left=50,top=50,width=800,height=580,menubar=no,resizable=yes,scrollbars=Yes,status=yes,toolbar=0'))"
>
> When the report is displayed for the first time...the URL link works fine. I
> get an security msg from adobe reader saying document is trying to open this
> link ..asks to block or allow...when i click Allow ..the new window
> opens(with the report). But when i close this new window and reclick the
> link...it does not work.
> I have been stuck in this for 4 days now...i am not getting what is the
> issue...
> The aspx page has frames...but i do not see any issue with that either...i
> am tried with a simple aspx page...same issue...i have tried allowing
> pop-ups ...etc
> I think this is issue with adobe reader ..because if i display the report
> in HTML format...the link works fine...opens every time i click it!!!!.
> Has anyone has had any similar issues!!!!...
> Can anyone help me ...all i want to do is...open a link in new window from
> an deployed PDF report ...link is an aspx page with a new detail report.
> Thanks.
I have put and URL link in an report as follows to open a new
window(cotaining another report)
="javascript:void(window.open('http://localhost/ReportViewer/ReportFrame.aspx?rptPath=REPORTPATH&args="
& REPORTARGS &
"','GraphDetail','left=50,top=50,width=800,height=580,menubar=no,resizable=yes,scrollbars=Yes,status=yes,toolbar=0'))"
When the report is displayed for the first time...the URL link works fine. I
get an security msg from adobe reader saying document is trying to open this
link ..asks to block or allow...when i click Allow ..the new window
opens(with the report). But when i close this new window and reclick the
link...it does not work.
I have been stuck in this for 4 days now...i am not getting what is the
issue...
The aspx page has frames...but i do not see any issue with that either...i
am tried with a simple aspx page...same issue...i have tried allowing
pop-ups ...etc
I think this is issue with adobe reader ..because if i display the report
in HTML format...the link works fine...opens every time i click it!!!!.
Has anyone has had any similar issues!!!!...
Can anyone help me ...all i want to do is...open a link in new window from
an deployed PDF report ...link is an aspx page with a new detail report.
Thanks.Hi,
my jump to link is similar and working.
my link is like this..
="javascript:" &
IIF(Fields!Acked.Value = 1,"void(0)",
"var sRS='" & Globals!ReportServerUrl &
"';void(window.open(sRS.substring(0,sRS.indexOf('/ReportServer')) +
'/rtreporting/acknowledge.aspx?FilterID=" & Fields!FILTERID.Value &
"&prmServer=" & Fields!SERVER.Value & "&prmStartDate=" &
Format(Parameters!prmDateFrom.Value,"yyyy-MM-dd HH:mm:ss") & "&prmEndDate=" &
Format(Parameters!prmDateTo.Value,"yyyy-MM-dd HH:mm:ss") & "','_blank'))")
can you use Globals!ReportServerUrl instead of localhost.
also try using _blank parameter and make it default size..
"Sunny" wrote:
> We are displaying reports in a PDF format through an aspx page.
> I have put and URL link in an report as follows to open a new
> window(cotaining another report)
> ="javascript:void(window.open('http://localhost/ReportViewer/ReportFrame.aspx?rptPath=REPORTPATH&args="
> & REPORTARGS &
> "','GraphDetail','left=50,top=50,width=800,height=580,menubar=no,resizable=yes,scrollbars=Yes,status=yes,toolbar=0'))"
>
> When the report is displayed for the first time...the URL link works fine. I
> get an security msg from adobe reader saying document is trying to open this
> link ..asks to block or allow...when i click Allow ..the new window
> opens(with the report). But when i close this new window and reclick the
> link...it does not work.
> I have been stuck in this for 4 days now...i am not getting what is the
> issue...
> The aspx page has frames...but i do not see any issue with that either...i
> am tried with a simple aspx page...same issue...i have tried allowing
> pop-ups ...etc
> I think this is issue with adobe reader ..because if i display the report
> in HTML format...the link works fine...opens every time i click it!!!!.
> Has anyone has had any similar issues!!!!...
> Can anyone help me ...all i want to do is...open a link in new window from
> an deployed PDF report ...link is an aspx page with a new detail report.
> Thanks.
Monday, March 26, 2012
JPG image does not render in Report Manager
A JPG image does not render in Report Manager but does when I export the report to PDF format. Also it renders fine in VS.NET Preview mode.
I have tried deleting the image and redeploying it to the Report Server but with no success! I don't know what else to do.
Can anyone help me with this one please?There have been several threads on this newsgroup about problems with images
not showing up in HTML rendering.
Most likely the machine name of the report server contains a character like
"_", which causes problems with finding the image streams by IE. This is not
an issue in Reporting Services, but in Internet Explorer - related to
security patch MS01-055. Details are available at:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q316112
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"PeteJ" <PeteJ@.discussions.microsoft.com> wrote in message
news:588EF768-BD27-46E3-9FA1-4ECDF62CC444@.microsoft.com...
> A JPG image does not render in Report Manager but does when I export the
report to PDF format. Also it renders fine in VS.NET Preview mode.
> I have tried deleting the image and redeploying it to the Report Server
but with no success! I don't know what else to do.
> Can anyone help me with this one please?sql
I have tried deleting the image and redeploying it to the Report Server but with no success! I don't know what else to do.
Can anyone help me with this one please?There have been several threads on this newsgroup about problems with images
not showing up in HTML rendering.
Most likely the machine name of the report server contains a character like
"_", which causes problems with finding the image streams by IE. This is not
an issue in Reporting Services, but in Internet Explorer - related to
security patch MS01-055. Details are available at:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q316112
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"PeteJ" <PeteJ@.discussions.microsoft.com> wrote in message
news:588EF768-BD27-46E3-9FA1-4ECDF62CC444@.microsoft.com...
> A JPG image does not render in Report Manager but does when I export the
report to PDF format. Also it renders fine in VS.NET Preview mode.
> I have tried deleting the image and redeploying it to the Report Server
but with no success! I don't know what else to do.
> Can anyone help me with this one please?sql
Subscribe to:
Posts (Atom)