tips & tricks


Calendario
dicembre 2024
lmmgvsd
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

Call Report from ISV

Call Report from ISV

When online we can use the reporting services url with the render to pdf querystring parameter

http://localhost/ReportServer/Pages/ReportViewer.aspx?%2f<orgname folder>%2fReport1&rs:Command=Render&rs:Format=PDF

offline:

http://localhost:2525/crmreports/viewer/viewer.aspx?id=<reportid>&helpID=<report RDL name> &action=filter


You can write a jscript function to manage online and offline:


<Button Icon="/_imgs/btn_off_lookup.gif"

      JavaScript="

      if (!IsOnline()){

        crmForm.RunReport(false, '\x7b4CE79392-A05F-E011-AF5F-005056862C11\x7d', '', 1, 'SalesReport.rdl');

      }

      else {

          url = 'http://localhost/ReportServer/Pages/ReportViewer.aspx?%2f<orgname folder>%2f4.0%2f%7b4ce79392-a05f-e011-af5f-005056862c11%7d&amp;rs:Command=Render&amp;SalesReportId=' + crmForm.ObjectId;

          window.open(url);                                 

       }"

       PassParams="1" WinMode="0">

<Titles>

  <Title LCID="1033" Text="Print Sales Order" />

  <Title LCID="1040" Text="Stampa" />

</Titles>

<ToolTips>

  <ToolTip LCID="1033" Text="Print Sales Order" />

  <ToolTip LCID="1040" Text="Stampa" />

</ToolTips>

</Button>

Categoria: CRM 4.0
lunedì, 11 apr 2011 Ore. 15.41
Archivio Posts
Anno 2020

Anno 2018

Anno 2015

Anno 2013

Anno 2011

Anno 2010

Anno 2009

Anno 2008
Statistiche
  • Views Home Page: 15.071
  • Views Posts: 58.219
  • Views Gallerie: 2.837
  • n° Posts: 117
  • n° Commenti: 1
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003