tips & tricks


Calendario
aprile 2024
lmmgvsd
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

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: 13.283
  • Views Posts: 55.974
  • 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