Render ssrs report as PDF in mscrm 2013 online plugin

Dear all;
i want to render an ssrs report as PDF for mscrm 2013 online an attach that with e-mail .i can see in the sdk that we can download the report defination file but is there anyway we can execute that rdl and then render it to pdf or anyother solution 
Remeber i am talking about online version of mscrm
please help

Hello Devster,
Thank you to post your question on TechNet forum.
After reviewing the whole post, I have a question to you. You can access the report via the link, http://myServer/Reports_DEVPROJECT/Pages/Report.aspx?ItemPath=%2fData+Mgmt%2fSample+Letter.
From the URL, I can see that the report is located at: /Data Mgmt/Sample Letter, instead of /DataMgmt/Sample Letter. In addition, I found that the target report is "/DataMgmt/Sample HAP Letter" instead of "/DataMgmt/Sample Letter" as the error described. I
am not sure whether you post out the correct code segment.
Please check the above things on your side, and hope it is helpful to you.
Regards,
Edward
Edward Zhu
TechNet Community Support

Similar Messages

  • Save SSRS Report as pdf using Reporting Services

    I've been trying to convert a SSRS Report to PDF and save to
    my local drive using the Reporting Web Services. Though I'm able to
    generate the corresponding pdf file but the contents of the file are
    missing. I've checked that the report I'm trying to convert is not an
    empty one. Only the header section is present there within the generated
    pdf files. Below is the code I'm using:
    protected void GeneratePDFFromReport(object sender, EventArgs e)
    RS2005.ReportingService2005 rs;
    RE2005.ReportExecutionService rsExec;
    // Create a new proxy to the web service
    rs = new RS2005.ReportingService2005();
    rsExec = new RE2005.ReportExecutionService();
    // Authenticate to the Web service using Windows credentials
    rs.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
    rsExec.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
    //rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rs.Url = "http://servername/reportserver/reportservice2005.asmx";
    rsExec.Url = "http://servername/reportserver/reportexecution2005.asmx";
    string historyID = null;
    string deviceInfo = null;
    string format = "PDF";
    Byte[] results;
    string encoding = String.Empty;
    string mimeType = "application/pdf";
    string extension = String.Empty;
    RE2005.Warning[] warnings = null;
    string[] streamIDs = null;
    // Path of the Report - XLS, PDF etc.
    string fileName = @"C:\Report\MemberReport.pdf";
    // Name of the report - Please note this is not the RDL file.
    string _reportName = @"/ReportFolder/ReportName";
    string _historyID = null;
    bool _forRendering = false;
    RS2005.ParameterValue[] _values = null;
    RS2005.DataSourceCredentials[] _credentials = null;
    RS2005.ReportParameter[] _parameters = null;
    try
    _parameters = rs.GetReportParameters(_reportName, _historyID, _forRendering, _values, _credentials);
    RE2005.ExecutionInfo ei = rsExec.LoadReport(_reportName, historyID);
    results = rsExec.Render(format, deviceInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);
    Guid siteID = SPContext.Current.Site.ID;
    GuidwebID = SPContext.Current.Site.OpenWeb().ID;
    stringbudgetName = string.Empty;
    try
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using(SPSitesite = newSPSite(siteID))
    using(SPWebweb = site.OpenWeb(webID))
    web.AllowUnsafeUpdates = true;
    web.Files.Add(web.Url + "/Shared Documents/SharepointMemberExpenseReport_" + DateTime.Now.ToShortDateString().Replace('/','-') + ".pdf", results, true);
    web.AllowUnsafeUpdates = false;
    catch{ }
    try
    FileStream stream = File.Create(fileName, results.Length);
    stream.Write(results, 0, results.Length);
    stream.Close();
    catch { }
    results = null;
    catch (Exception ex)
    throw ex;
    Any help would highly be appreciated. Thanks.

    use this code, save the byte array into format of pdf
    public static byte[] ExportReportInPDF(ReportViewer ReportViewerCompetency)
    Warning[] warnings;
    string[] streamids;
    string mimeType;
    string encoding;
    string filenameExtension;
    byte[] bytes;
    if (ReportViewerCompetency.ProcessingMode == ProcessingMode.Local)
    bytes = ReportViewerCompetency.LocalReport.Render("PDF", null, out mimeType,
    out encoding, out filenameExtension, out streamids, out warnings);
    else
    bytes = ReportViewerCompetency.ServerReport.Render("PDF", null, out mimeType,
    out encoding, out filenameExtension, out streamids, out warnings);
    return bytes;
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • Save SSRS Report as .PDF in Client Machine

    Hi,
    I am working on a SharePoint 2010 Visual WebPart, the saves a SSRS report as pdf on a button click.  The code is mentioned below:
    HttpWebRequest Req = (HttpWebRequest)WebRequest.Create(URL);
    Req.UseDefaultCredentials = true;
    Req.PreAuthenticate = true;
    Req.Credentials = CredentialCache.DefaultNetworkCredentials;
    HttpWebResponse objResponse = (HttpWebResponse)Req.GetResponse();
    Req.Method = "GET";
    //Specify the path for saving.
    string path = @"C:\test\" + quoteID + @".pdf";
    FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write);
    Stream stream = objResponse.GetResponseStream();
    byte[] buf = new byte[1024];
    int len = stream.Read(buf, 0, 1024);
    while (len > 0)
    fs.Write(buf, 0, len);
    len = stream.Read(buf, 0, 1024);
    fs.Close();
    stream.Close();
    The code works great, however, when the user clicks the button the file is getting saved directly in the main server when the WebPart is deployed.  So, now I want the user to be able to select the location in there system to save the file.  How
    to enable the "Open save file dialog" and let the user select the location. can someone help me with this ? 
    thanks.
    Regards, Vikram

    You can use below snippet.
     string strURL=path;
            WebClient req=new WebClient();
            HttpResponse response = HttpContext.Current.Response;
            response.Clear();
            response.ClearContent();
            response.ClearHeaders();
            response.Buffer= true;
            response.AddHeader("Content-Disposition","attachment;filename=\"" + Server.MapPath(strURL) + "\"");
            byte[] data=req.DownloadData(Server.MapPath(strURL));
            response.BinaryWrite(data);
            response.End();
    Bala

  • Issues in exporting SSRS report to PDF format in Report Server - Blank spaces are deleted

    Hi Gurus,
    I have a problem in exporting SSRS report to PDF format. It deletes all the blank spaces when I use bullet in a Text box and try to export to PDF formt in Report Server . For example
    •             Project submitted to the TRC
    Result in PDF format:
         • ProjectsubmittedtotheTRC
    I also noted that when I try to export to PDF in Visual Stuio 2005 (Business Intelligence development studio), it does not delete any blank spaces and shows the correct aligned Data in PDF format.
    Please help me as it is frustrating a lot
    I would highly appreciate for your quick response 

    Was there ever a solution found for this as i have the same issue.
    When bullet point is entered in a field all the spaces are removed when exported to PDF
    i tried exporting to excel and it does not remove spaces, however this is no use to me as it needs to be in PDF
    Using IE 7 (Don't think the browser has anything to do with it as this happened via a subscription)
    Didn't know SSRS had specific Service Packs, i though they came as patches to SQL Server (SQL Server is on Service Pack 3)
    This should be easy to replicate all you need to do is copy text containing a bullet point into a sql server database field and then add this field to a report export to pdf and the spaces are gone
    Thanks in advance,
    Mark Brunton
    brunzire

  • SSRS Report in PDF format opening very slowly in SharePoint

    HI All,
    I have a SSRS report which is being hosted in SharePoint.
    Currently I am opening the report in PDF format in SharePoint but it is taking a lot of time to render.
    It would be very helpful if any one helps me to resolve this issue.
    Thanks
    Sudipta Ghosh
    TCS-Copenhagen
    Sudipta Ghosh Tata Consultancy Services

    Hi sudipta,
    According to your description, it takes too long to render the report on SharePoint site when accessing it. Right?
    In this scenario, it can be many possibilities which will reduce the report performance. We suggest you check the report on ReportServer first. Go to the ReportServer ExecutionLog to see which part takes more time.
    Then we need to do some troubleshooting to improve the report performance. Here we have a article for your reference:
    Troubleshooting Reports: Report Performance
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Error occurred during exporting ssrs report as pdf

    an error occurred during local report processing. Object reference not set to an instance of an object
    Thanks in advance

    Hi Esha2nk,
    According to your description, when you export the report to PDF in BIDS, the error “Export error: An error occurred during local report processing. Object reference not set to an instance of an object.” is thrown out.
    Based on the error message, it could cause by that there are hidden groups within the report, or the matrix has multiple columns and rows, and Hidden is set to true in the Visibility properties. So in your scenario, please check those two factors. If
    issue persists, please provide report design for our analysis. Besides, would you please tell us which SQL Server version you are using?
    Reference:
    "An error occurred during
    local reporting processing. Object reference not set to an instance of an object."
    Object reference not set to an instance of an object
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Custom SSRS report dev from Lync Server 2013

    Trying to replicate canned Lync 2013 User Activity Report, but with more filtering capability, using SSRS. Necessary to do this way because we're adding details like user name, department and location from our Active Directory.
    Have been unable to ever find support on WHAT the query or stored proc IS behind the UA report. If I have that code I can incorporate that with our data.
    Any help appreciated!
    James Nelson

    Hi,
    Check whether the SBC support REFFER if not disable REFFER from Lync Server Trunk configuration.
    Please check if the SBC is supported with the help of the link below:
    http://technet.microsoft.com/en-us/lync/gg131938
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • SSRS Report Excel, PDF, Word download error.

    I am facing urgent issue in downloading excel, word and excel format of report. If report size exceed 3+ Mb then I can enable to download the report. Reports
    gets downloaded for smaller size.
    Reports gets rendered properly in browser but when I tries to download them it gets failed. I tried on crome, firefox, Internet explorer. But it
    fails in every browser.
    Kindly support me to resolve this issue.
    Below is the screenshot of the exceptions.
    Regards,
    Satish Jadhav

    Hello Mahfoud,
    Thanks  for your reply. 
    I just confirmed that we already installed latest hotfixes.
    We are using  SQL Server 2008 R2 Enterprise
    Edition 10.50.2500.0.
    Regards,
    Satish Jadhav

  • SSRS Report Designer in Visual Studio 2013

    Hi all. Does anyone know what I need to install to be able to open rptproj projects in VS2013? I found a page which says it is possible, but it doesn't go on to explain what I need to install to make it happen.
    It seems that every version of VS that comes out this is a problem. They never make it clear and you end up spending hours trying to find out how to do it...
    Thanks

    Hi BuckBuchanan,
    If we want to create SQL Server Business intelligence projects on Visual Studio, we need install SSDT-BI for Visual Studio. However, the SSDT-BI for Visual Studio 2013 has not been release, so we cannot create SQL Server Business intelligence projects on
    Visual Studio 2013. The commercial release of SSDT-BI is expected to be based on the newer Visual Studio 2013 in conjunction with the commercial release of the SQL Server 2014. For the detail information about it, please refer to following link.
    http://blogs.technet.com/b/dataplatforminsider/archive/2013/11/13/microsoft-sql-server-data-tools-update.aspx
    Currently, if you want to create Business intelligence projects, you can install Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2012.
    SQL Server Data Tools – Business Intelligence for Visual Studio 2012 released online
    Regards,
    Charlie Liao
    TechNet Community Support

  • SSRS reports are not fitting properly in Report Viewer Control

    Hi All,
    We are using Report Viewer Control to render SSRS reports & show it on SharePoint web page. In .aspx page we are putting Report Viewer Control as follows:
    The zoom percent of Report we are getting from Report Server is 100%. We are making it as 50% to show it on our page. On one page, we are showing 2 reports.
    <rsweb:ReportViewer ID="rpv2Chart1" runat="server" Font-Names="Verdana" Font-Size="8pt" ProcessingMode="Remote" Height="211px" Width="813px" ZoomPercent="50"></rsweb:ReportViewer >
    The reports are coming. But the reports which we are getting inside the control are not readable & 25% of Report Viewer Control on our right hand side is blank.
    As you can see it's not readable. For readability we want to use that white space also & want to utilize full controls's space. But if we try to increase percentage from our report viewer tag, then the graph is zooming in with both, height & width
    so it's going out of control.
    Client don't want scroll bars on Report Viewer control. We just want to utilize the entire Report Viewer Control space.
    Can anyone suggest us how to do that?
    Thanks,
    Sanjay

    Hi Sanjay,
    I'm afraid that it is not the correct forum for this issue.
    If it is the SSRS issue, you could post this issue here:
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlreportingservices
    If it is the VS report control issue, maybe you would get better response here:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=vsreportcontrols
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get the usage of SSRS reports in project server 2010

    Hi
    Can any body tell me how to get the usage of the SSRS reports in Project Server 2010.
    Thanks
    Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

    Hello,
    See the links below on how to get the usage for SSRS reports:
    http://sqlbadboy.wordpress.com/2013/09/12/reporting-services-reports-whos-using-them/
    http://www.mssqltips.com/sqlservertip/1908/analyze-report-execution-and-usage-statistics-in-sql-server-reporting-services/
    http://www.mssqltips.com/sqlservertip/1306/how-to-know-what-reporting-services-reports-are-being-used/
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Schedule a SSRS report as step in SQL SERVER agent

    Hi All,
    The requirement is that can we schedule a job as a step in SQL Server Agent.
    Scenario: I got a SQL Agent job which got multiple steps. Executing SP's, running SSIS etc. The last setp i want to setup is run a SSRS report where it gives the report of all the steps. It is like a summary report.
    Is that is possible. If so hw can i achieve it.
    Thanks in advance.

    You can use rs utility to render reports using below script file
    http://skamie.wordpress.com/2010/08/11/using-rs-exe-to-render-ssrs-reports/
    and call rs utility from bat file or using xp_cmdshell.
    Then include this script as last step in your job.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    Visakh, I added you to this list:
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/64ad4f52-2fd8-4266-b4a4-5657c8870246/needed-more-answerers?forum=sqlgetstarted
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to pass server/domain credentials when accessing SSRS report through SSRS Web service programmatically?

    I am trying to render SSRS Report located on my remote report server in my ASP.NET MVC 4 app through reporting services web service programmatically.
    how can i send the server (windows/domain credentials) at runtime?
    tried below but no success.
    ReportingService2010 service = new ReportingService();  service.Credentials = new System.Net.NetworkCredential("username", "password");    service.Url = "http://MyReportServer/ReportServer/";

    Why are you using window domain credential ?
    Simply "rs.Credentials =
    System.Net.CredentialCache.DefaultCredentials" should work.
    http://technet.microsoft.com/en-us/library/ms170088(v=sql.110).aspx
    Regards, RSingh

  • SSRS report does not rendering properly in sharePoint 2013

    Hi everyone,
    I'm a newbie with the MSBI development tool, I've tried to create a testing SSRS reports and its layout showed correct when preview them in Visual Studio (2010 and 2012). Then I migrated the report in SharePoint 2013, but the layout do not rendering as I
    expected, some data mix-up on the matrix table
    The Ident on detail data (drill down) does not render properly compare the layout in when preview in Chrome or Visual Studio (SSRS)
    The summation on second matrix table went wide on both browsers compare when preview thereport in Visual Studio
    The export PDF (using the "action" button on the report in the browsers) showed the second matrix table is overlaps the first matrix table.
    This report has 3 main queries (2 for the matrix tables and 1 for the chart) on a Dev environment:
    Window server 2008 R2 with service pack 2
    SQL server 2012 enteprise with service pack 2
    SharePoint 2013 (no service pack) with integrated mode on the report service 
    Visual Studio 2010 development tools
    I'm very appreciate for anyone can provide any solution to solve this issue.
    Thank you so much,
    Dac.
    P.S.: I attached the preview of the report in both browsers (IE & Chrome) and its preview in Visual Studio.
    An update: ... due to the setting space on"snap to grid" default to 20 and I've made the 2nd matrix table overlaps the 1st one, therefore the it showed overlaps when export to PDF file ... it's solved.
    But the Indent on IE and summation still persist in both browsers.

    Hi everyone,
    The PDF's export has been solved due to the 2nd matrix table overlaps on the 1st table. 
    Also, I don't know why the summation (aka Row Total) went wide when data represented on the 2nd matrix table (see previous post on the row named as "Premium over 5000$" on both browser. So I've redesigned the 2nd table as normal table instead of
    matrix table ... and the summation showed correct (it's so weird)
    For the "Indent" issue showed in IE on both drill down of the 1st table and 2nd table which cannot be fixed, and the end user used only IE.
    Could someone can enlighten me please?
    Many thanks.

  • SSRS Report Report Blank Yet Generates Perfect PDF

    I have a rather complicated SSRS report (basically a dashboard with multiple charts and tables) that I'm having some issues with. It generates fine in BIDS, but out on the report server is where things get weird.
    On the report server it generates without throwing an error, but doesn't display anything, I just get a blank white screen. Yet I can export the report to a PDF, and in the PDF everything looks perfect (despite not having actually displayed
    anything in the report manager after the report successfully runs!).
    If I upload the report into our CRM 2013 app and run it, I get the generic "rsProcessingAborted" when it first runs, then if I hit "Try Again" on the error screen I get the "Invalid Argument"
    error.
    I set the timeouts on the queries in the .rdl to an insane 20 minutes just to rule out a timing out issue.
    Anyone ever seen something like this before, a blank SSRS report that doesn't throw an error yet still generates a correct PDF?

    This appears to be a Chrome browser issue and unfortunately that's the browser my company insists on using. Just ran the report via IE and it worked perfectly. Chrome just cannot render the HTML correctly on very complicated reports it seems, as all my basic
    reports worked fine in Chrome. Found this thread on potential fixes in the .js files on the report server. Not sure how that is going to play with the reports in CRM:
    http://stackoverflow.com/questions/5968082/ssrs-2008-r2-ssrs-2012-reports-are-blank-in-safari-and-chrome

Maybe you are looking for

  • How to get font's information from PDF of page item?

    The PDF file is placed in a document of InDesign.How to get the list of font's name from the PDF.I would like to know the font which is used in the PDF file.

  • Photoshop 7.0 wont open

    I have used Photoshop 7.0 for years and suddenly it won't open.  I did read the previous post on this between Schlader Photography and John Joslin...but my problem seems to have its own quirk...my program wouldn't re-install.  I tried everything they

  • Formulas, superscripts and subscripts with Pages on iPad?

    How to write formulas, superscripts and subscripts with Pages on my iPad? Do i need a third part app? If so, could anyone suggest one? Thank you!

  • How to see what songs in my library are NOT on my iPhone?

    I know my phone is missing songs from my library - but I am having a hard time locating them (I have playlists and genres set to sync and some songs unchecked that I do not want synced, but I can't find the one-off's that say don't have a genre in th

  • Customizing "Quick Print" in Contacts

    Hey guys, thanks for reading; I do a lot of mailing to addresses stored in my outlook contacts, but every time I create a mailing label I have to copy/paste the relevant fields from my Outlook 2013 contacts into Word and from there tell word to creat