Crystal Report Viewer Not viwed - Through APP Server Re-Direction

Hello Team
I have a critical problem in my organizaion for viewing the reports.
Configuration that we are using:
1. Windows Server 2008 R2
2. Crystal 13 - Server Trial Version - Expiring on Aug-25th, 2014
3. Used Visual Studio 2010 - .NET
4. IIS 7.0 - configured a  Virtual Directory for ASP.NET application
Out Application is using an Oracle APP Server to view the HTML. A button is provided in the HTML to redirect to view the Crystal Report.
when I click on the Hyperlink and the url is directly accessed, then the Report is being shown without any issue.
But ours is a corporate application and we have given a provision of accessign this application when users are outside of network. Hence the Crystal Server is under fire-wall. So, I cannot access it directly with a URL. Hence the app server is configured in such a way that if it find a name like "Reports" in the URL, then it redirects to the actual Web Server and gets back the data to the browser.
for URL redirection, the app server is configured as below
    ProxyPass /crystalreportviewers/ http://<<ServerIP>>/crystalreportviewers/
    ProxyPassReverse /crystalreportviewers/ http://<<ServerIP>>/crystalreportviewers
    ProxyPass /reports10/ http://<<ServerIP>>/reports10/
    ProxyPassReverse /reports10/ http://<<ServerIP>>/reports10
When the user redirects from the APP server using those redirection rules, the pages are being executed but the final crystal report viewer control is not being shown on the browser. I am not sure if we need to perform any other steps to get these thigns done.
Our server is behind fire-wall and whenever I am in network, I used to get the output but when the redirection happens not able to load the Crystal Report Viewer. Not sure, if there are any other security rules that I need to consider to get back the CrystalReportViewer.
Also, there is something called CrystalReportInteractiveViewer prior to Crystal13. Do we have anything as such in Crystal 13 also? Please help me in getting this worked.
Please let me know if I am not clear in my explanation and I can certainly provide you a better information based on your queries.
Thanks
-Srinivasa Nadella

Hi Srinivasa,
Please move this thread to SAP Crystal Reports, version for Visual Studio
Helpful threads: Having issues with Crystal reports report viewer
c# - Application level assembly redirection not working - Stack Overflow
asp.net mvc - Why is my Crystal Report and Viewer invisible on a Web Form in an MVC application? - Stack Overflow
Regards,
DJ

Similar Messages

  • Crystal Report Viewer Not Releasing Oracle Database Connections

    I have a very simple vb.net 3.5 web application that uses the Crystal Report viewer 2008 to open a report. My requirements are as follows:
    1. Reports are built by another company and provided to us and used in a web environment
    2. All reports contain parameter fields
    3. The web application must be generic enough that a report can be added to a list and the user simply selects the report and provides database login information. The Crystal report viewer with handle the request for parameter values and prompt the user for their values.
    4. All reports connect to an Oracle 10g server.
    The above requirements have been meet and we have an extremely simple web application that runs the reports. It is working very well other than the crystal report viewer is not releasing the database connections. This is bad because the credentials are on a per user basis and that same user must login to a different oracle application simultaneously. They are being denied access because the credentials are already in use. We do not have control nor influence over the policies in use on the Oracle server. Ideally we would like to control the Crystal Report viewer so that it closes connections after use.
    The web application code is:
    Private Sub viewReports_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
    If Not IsPostBack Then
    ConfigureCrystalReport()
    End If
    End Sub
    Private Sub ConfigureCrystalReport()
    'Load the Crystal Report viewer with a report.
    Try
    Dim reportPath As String = Server.MapPath(Session("reportname"))
    crViewer.ReportSource = reportPath
    Catch ex As Exception
    Response.Write(Server.MapPath(Session("reportname")) & "
    " & ex.Message.ToString & "
    " & ex.StackTrace.ToString)
    End Try
    End Sub
    Can anyone shed some light on this topic? Thank you

    Hello, Timothy;
    By default, having the report in session will hold it open for 20 minutes.
    If you create the report as a ReportDocument object you can take it out of session and release it more efficiently. That will release the connection.
        Private Sub ConfigureCrystalReports()
            If (Session("hierarchicalGroupingReport") Is Nothing) Then
                hierarchicalGroupingReport = New ReportDocument()
                hierarchicalGroupingReport.Load(Server.MapPath("Hierarchical Grouping.rpt"))
                Session("hierarchicalGroupingReport") = hierarchicalGroupingReport
            Else
                hierarchicalGroupingReport = CType(Session("hierarchicalGroupingReport"), ReportDocument)
            End If
            myCrystalReportViewer.ReportSource = hierarchicalGroupingReport
        End Sub
    In the Form Unload of the Viewer:
                'Take the report out of session
                Session("hierarchicalGroupingReport")  = Nothing
                Session.Contents.Remove("hierarchicalGroupingReport")
                'Clean up the ReportDocument object
                hierarchicalGroupingReport.Close
                hierarchicalGroupingReport.Dispose()
                hierarchicalGroupingReport = Nothing
                GC.Collect()
    Elaine

  • Crystal report viewer not showing any option in browser at run time

    Hello concern
    I am mahendra gohil a student in computer science.
    I am using crystal report viewer with VS 10 . Every thing is fine code is running , in browser data are displayed but I didn't find any options that make print of my document . In my document has multiple pages but it displays only first page. all options are set to true with "pdf" as print mode.
    I have read all post regarding this issue , could not find any solution. Also set "Enable Acrobat Javascript " in adobe reader application.
    I have attached my project image with this question.
    Can any one plz help me to solve this ?

    I am using Firefox 20.0* and Crome 34.0.*
    Here is my code
    page :: viewreport.aspx
    <%@ Page Title="" Language="C#" MasterPageFile="~/ideal.master" AutoEventWireup="true" CodeFile="viewreport.aspx.cs" Inherits="Default3" %>
    <%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
        <style type="text/css">
        .style1
            width: 100%;
    </style>
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <table class="style1">
        <tr>
            <td>
                 </td>
            <td>
                 </td>
        </tr>
        <tr>
            <td colspan="2">
                <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
                    AutoDataBind="True" EnableDatabaseLogonPrompt="False"
                    GroupTreeImagesFolderUrl="" Height="50px"
                    ToolbarImagesFolderUrl="" ToolPanelWidth="200px" Width="881px"
                    ToolbarStyle-BackColor="#33CC33" ToolbarStyle-BorderColor="#FF5050"
                    ToolbarStyle-BorderStyle="Dashed" />
            </td>
        </tr>
    </table>
    </asp:Content>
    page :: viewreport.aspx.cs
                ReportDocument rp = new ReportDocument();
                rp.Load(Server.MapPath("IPD_BILL.rpt"));
                string payment_str = "SELECT * from report";
                DataSet ds = new DataSet();
                ds = conn.read_op(payment_str);       
                rp.SetDataSource(ds.Tables[0]);
                CrystalReportViewer1.ReportSource = rp;

  • Crystal Report Viewer not displaying properly in on loading

    I am using Visual Studio 2012 in Windows 10 with IIS 8.5. I configured Crystal reports properly but when I load the webpage the Crystal report viewer doesn't load properly and the toolbar and other options are not showing. Please help. Following is the problem am talking about:

    Hi Zaeem,
    Windows 10 is not currently supported. We plan to add it to the supported platform in SP 14 which is planned for sometime end May.
    I tried it and make sure you are loading the Viewer and Report in the Page_Init section. Also the CrystalReportsViewer folder must be included in the project.
    Try searching and you'll find info on this subject.
    Don

  • Report Viewer not displaying on deployment server

    Hi,
    I am using Visual Studio 2010 with the crystal reports down load to use the viewer. I am using version 13.0.2 with SP1. I have the redistributable package installed on the windows server 2003(32-bit) with .NET Framework 4 where the web app is being deployed. The problem that I am having is that the report view isn't displaying, although it appears that the report itself is being processed. It all works on my development machine which is running windows 7 enterprise(64-bit) with .NET Framework 4. I have been reading through where other people have had problems getting parts of the view to display, like the buttons or charts, but my problem is that the viewer doesn't show up at all. I am not sure why this is happening but I think that it has something to do with the application not know where to look for the viewer dlls or something.
    Any help that people can give me would be very much appreciated. Also let me know if I have put this in the wrong spot.
    Thank you in advance.
    Mark.
    Edited by: Mark Witte on Jun 22, 2011 10:14 PM

    See the following articles. I suspect you are using a custom website and thus as you suspect, the CR engine has no idea where to find the viewer. Forget about red x in the articles, just read up on how to configure custom web site. Also, the article does not go as far as CRVS2010, so the directories are a bit different, but the ideas are the same.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50aa68c0-82dd-2b10-42bf-e5502b45cd3a
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Crystal Report does not run through NWBC

    Hi All,
    I have been going through posts on SDN all day and I cannot seem to get a resolution to my issue as yet.
    Workflow is this
    Logon onto NWBC 3.0
    Click on Crystal Report. Crystal report contains an OpenDocument URL specified as follows:
    http://<servername>:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AbFjYgXfkO5AofAAPxoxOyA&sIDType=CUID
    When click on the Crystal REport link, i am SSO'd onto SAP BusinessObjects Infoview (Edge 3.1 SP3)
    The Crystal Report attempts to load and then I encounter the following message:
    Error
    The database logon information for this report is either incomplete or incorrect. 
    SSO with SAP Authenication is enabled for SAP BusienssObjects.
    Server-side Trust, etc has been set-up on the SAP Side
    All steps were followed from the SAP BusinessObjects XI Integration for SAP Solutions Installation and Admin Guide.
    For the Crystal Report itself, within the CMC, for the Database Configuration i set it to 'Use SSO context for database logon'.
    Also the the Data Source is using FQDN for everything.
    I am at a loss as to why the SSO is not working to refresh the Crystal Report.
    Any ideas on what to check next would be very much appreciated.
    Also, the report I am trying to run from within NWBC, contains a dynamic prompt, that uses a BV layer to populate it. The LOV is scheduled to refresh every morning. Dont know if that is causing the issue or not.
    Thanks,
    Ainsley
    Edited by: Ainsley O'Sullivan on Oct 27, 2011 7:57 AM

    Hi Ingo,
    Thank you for your reply.
    Why has server side trust been setup on the SAP side ?
    I am not sure why Server Side Trust has been set-up on the server side. The basis person who set that up was following the BusinessObjects XI Integration for SAP Solutions Installation and Administration Guide. We thought we needed this in order for SSO to work between NWBC and BusinessObjects.  I read now it is only required for multi-pass report bursting.
    We have also set up the PSE as well.
    So...perhaps  an impersonation-style logon is happening on the SAP side because we have set up SNC?
    What do we do to undo this from a BusinessObjects server perspective? We have downloaded all the Cryptographic Libraries, set them up on the SAP and BusinessObjects servers.
    I will discuss this further with the basis person.
    All involved URLs and server names have been fully qualified ?
    Yes, everything is fully qualified.
    NWBC has been configured to issue a SAP logon token ?
    I am not sure. Where is the documentation on how to configure NWBC to issue a logon token? Should I be pointing my basis resource to look at the NWBC Documentation, Section 7.3 Logon Tickets?
    OpenDocument has been configured to use SAP authentication by default and to accept Logon token ?
    Yes, everything from a BusinessObjects server perspective has been configured. The web.xmls for InfoView and OpenDocument have been configured for sso with sap.
    In the CMC, SAP Authentication has been set-up and works a treat.
    It seems to me the SAP side, ie. NWBC needs more work.
    Just find it hard to get a clear, step by step process on how to set-up NWBC to work with BusinessObjects. There is an abundance of documentation, but sometimes not a clear cut, step by step guide.
    Ingo I bought your book the other day too, Integrating SAP BusinessObjects 3.1 Tools with SAP Netweaver. I really liked it because it is clear what you need to do. Perhaps another one could be written or another section added to this book that talks about NWBC and embedding BusinessObjects reports within it?
    Thanks again.
    Cheers,
    Ainsley

  • CRYSTAL REPORT VIEWER NOT FOUND IN VC++

    Hi All,
    I am migrating our appn VC++ 6.0 code to VS 2010(MFC code compiled in VS2010). I could able to compile all the code in VS 2010 and i am created vb.net report application using crystalreport viewer, it working fine, afterthat i am converted vb.net code  to C#.
    My questions are,
    1) how to add crystalreportviewer control in VC++ (searched not found) or alternative any control is available in vc++ using same c# code?
    2) if its possible , to load rpt files without viewer control ? ,if yes, please provide me sample code.
    Regards,
    Esha Abdullah M

    I found one, since you never looked, to get you going. It's written in C++, just change the assemblies to CR for VS 2010
    General
    Crystal Reports .NET - All Sample Applications
    This set includes the following samples:
        cr_net_sdk_tutorial_samples_en.zip
        crsdk_net_samples_12.zip
        NET-CPP2005_CRNET_CR115_Change_Record-Selection-Formula.zip
    #using <C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll>
    #using <C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.Shared.dll>
    #using <C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.Windows.Forms.dll>
    And comment out the Page event, seems they don't work in 2010, we changed the event handler:
    //               this->crViewer->ClickPage += new CrystalDecisions::Windows::Forms::PageMouseEventHandler (this,&ViewForm::crystalReportViewer1_ClickPage);
    //               this->crViewer->DoubleClickPage += new CrystalDecisions::Windows::Forms::PageMouseEventHandler (this,&ViewForm::crystalReportViewer1_ClickPage);
    Don
    Edited by: Don Williams on Jul 13, 2011 9:05 AM

  • Some Crystal Reports are not using the Cache Server

    Hi...we are currently running BOE XI R2 SP2.  I setup a server group with a Cache Server and a Page Server.  In the CMC, I set this cache server to keep reports cached for 15 minutes.  On the Process tab of some reports, I specifically set the report to use this new server group.  On some of the reports this works as expected.  For others, it does not appear to be since the cache folder's Date Modified date does not change.  So far the only similarity between the reports that do not use cache is that these reports have sub-reports.  Has anyone experienced this before?  If so, how did you resolve it? 
    Thanks!

    Hi Rich,
    the connectivity on the Designer an don the BusinessObjects system is identical. Is region the only characteristic being used in the report ? which connectivity did you use in Crystal Reports ?
    ingo

  • Crystal report Viewer Not Showing Control Bar Button Icons

    Hi
    I am using Crystal report along with .net 2003 in web application.
    While executing, the report  its not showing any errors,but the control bar buttons(print, export, next page last page, previous page, first page, etc ) are showing without there icons.
    These invisible buttons can be found by placing the mouse over the specified area, then it shows the tool tip like print etc.
    Please give me solution.

    Would you like to have a look at these:
    [1.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303336333633373339%7D.do]
    [2.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133383333333933313333%7D.do]
    [3.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303332333533323337%7D.do]
    [4.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333733363334%7D.do]
    [5.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313336333333303335%7D.do]
    [6.|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333833393338%7D.do]
    Hope this helps!
    AG.

  • Crystal Reports Visual Studio 2010 Report Viewer Not Rendering

    Hello,
    I was able to get Crystal Reports deployed in a web application in VS 2008 OK, but now I am having trouble with CR and VS 2010. For some reason the data and images for the report are being displayed,  but the report viewer controls and background are not. I am not getting red Xs, the viewer is just not there. I have tried changing my references, I have installed the CR run time, and all permissions are correct. I am trying to get this up and running on the local machine. Has anyone dealt with this problem before?
    thanks.

    See if [this|Report Viewer not displaying on deployment server; thread helps.
    - Ludek

  • Crystal Reports Viewer - pdf, prompts, icons problem

    Hi all,
    I am a new in BO.
    I have some answer about Crystal Reports Viewer (not about setup.exe but about CRV application that I uploaded on Tomcat)
    1) The old version (11.5) works good, only Export to PDF functionality is wrong. There are in the pdf file wrong display of specific czech characters (charset)
    2) A new version, Crystal Reports Viewer 2008, show the same pdf mistake. I have J2SE Runtime Environment 5.0 Update 4 and Apache Tomcat 5.5.9.
    I upload application on Tomcat, configuration (web.xml, crconfig.xml and context.xml) is the same with version 11.5.
    Crystal Reports Viewer 2008 displayed reports, but the problem with PDF is present. The second problem is the look of CRV. First one, the icons (for export, print...all icons) are not displayd. I can copy old jar files into java (in application folder C:\WebReports\WEB-INF\lib), but then CRV looks like old version.
    And CRV 2008 doesn't display listbox in dynamic prompt on crystal report. What shall I set to displaying prompts in CRV 2008 (on CRV or on report in Crystal 2008)?
    Have you some idea? What and how can I set and configure application and where?
    Veronika

    Hi,
    To confirm, are you talking about "Crystal Reports Viewer 2008" http://www.sap.com/solutions/sapbusinessobjects/sme/reporting/viewer/index.epx
    I suggest sending in the report, in the viewer, select "Help" - "General Feedback" and then pick the option to attach the report.  In a couple of months there will be a refresh version of this view which will have Czech language support so it would be good if we could test out your PDF issue.
    As for showing parameters in the prompt panel in Crystal Reports Viewer 2008, since the viewer cannot refresh the data, make sure the parameter does not used in the record selection formula but only in the saved data selection formula.

  • Crystal Report Viewer changes font

    Hello,
    I am having an issue with Crystal Report Viewer NOT displaying the correct fonts. Below are the steps to recreate the issue
    1) Created a Blank Crystal Report using Crystal Report 2008.
    2) Added a few fields in them and selected the following font for all the fields :Courier 10 cpi
    3) Saved the report with data.
    4) Viewed the report using Crystal Report Viewer 2008.
    5) The fields displayed in this Report Viewer is NOT Courier 10 cpi.
    Please tell if there is a fix for this problem. Please Note that using a different font is NOT an option since I will be printing the report to a Dot Matrix printer. Using a different font will slow down the printing speed.
    Thanks
    Krishnan

    Hi Carl,
    There is a font named Courier 10,12,15(VGA res) installed on the machine.
    Also  the Courier 10 cpi is selected on all fields on the report. But when I view the report from CR viewer, it changes to a different font.
    Also the report does not print properly to the dot matrix printer. The speed of the report is very slow and the page alignment is off. The first 2 lines of the 2nd page are printed at the end of the first page. The first 4 lines of the 3rd page prints at the end of the 3rd page and it keeps getting worse by each page.
    Krishnan

  • Print Button Not Working if i not inital the Crystal Report Viewer

    hiii every body here
    i have problem on my web application with framework (4.0)
    i use crystal report viewer (crystal report 13) and i installed the engine of crystal report and use dataset as datasource to my report and my report work fine but ....
    my problem is :
    i cannot export or print my crystal report 13 if i put my code on sub like that :
    protected void btn_print_Click ( object sender , EventArgs e )
                SP_testTableAdapter adpter = new SP_testTableAdapter();
                adpter.Fill(ds.SP_test);
                Reports.Learning.CrystalReports.CR_testreport my_report = new Reports.Learning.CrystalReports.CR_testreport();
                my_report.SetDataSource(ds);
                CrystalReportViewer1.ReportSource = my_report;
                CrystalReportViewer1.DataBind();
    when i use this i cannot print or export it say to me login to database fail message although i use dataset not direct database connection that mean it not need to give the report source every use of it the connection of my server details like username , password
    but if i put this code to my page load the report run and showing and print correctly , i need to can use print,export and every button on reportviewer toolbar
    without put the code that display report on page_load i need to put code on button event only and when i click the button it show the report and can print and export , and not need to use sesssion
    need help plz ................

    An assumption here is that this is a web app. That being the case, you need to worry about post backs when you print or export. E.g.; almost any action the viewer will cause a post back and thus what ever data you sent to the report is now forgotten. Place the report in session and this will eliminate the issue. Search for KBA 1985571. I document the full code needed there.
    - Ludek

  • Crystal Reports Viewer seems to have data - but it is not showing

    I am developing on a Windows 7 box and publishing a VS2010 web application to a Windows 2008 server.
    On the server I have installed CRforVS_redist_install_64bit_13_0
    Reports are stored in a folder on that server.
    When I run the application on my local machine the report displays okay via the Crystal Reports Viewer on a .aspx page.
    When I run the application on the server, if I view the source of the page that contains the Crystal Report Viewer - it seems to have fetched the report okay. But it is not showing on the screen. I was thinking this might be because it can't find the 'style.css' file but on both the development machine and server all the various folders and files in and under crystalreportviews13 are present in aspnet_client/system_web/4_0_30319/
    When I view the source of the pages that display the report - they seem to be identical both when viewed on my development box and when accessing the app directily on the server. But, on the .aspx page displayed by the server, the page is blank in the browser. Yet, as I say, when you view source all the data is there.
    What am I doing wrong? Thanks for any help.
    Edit: In both cases if you View Source the page is showing this:
    <link rel="stylesheet" type="text/css" href="../aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css" />
    On my development box this makes sense. The web site in question is below 'Default Web Site' - i.e. it is at the same level in the folder hierearchy as the aspnet_client folder.
    But on the server, the site is a subweb below a web site that is level with Default Web Site. So I figure the files are not being found. How can you tell the Crystal Reports Viewer that the files it wants (like style.css) are not where it thinks they are going to be?
    So the app is looking for a file at the same level.
    But on the server there
    Edited by: Steve Rowson on Jun 1, 2011 5:31 PM

    Post to the SDK forum

  • Crystal report viewer does not observe the PaperSize and PageOrientation setting

    Hi:
    My application is a 3 tier application, where the WinForm client is connected to the WCF Services hosted in IIS server.
    The report is generated on server side using WCF service, and export as.rpt with data, the .rpt file is then sent to the WinForm client, the Crystal Report viewer is used to load the .rpt file for preview and print.
    On server side I've Microsoft XPS Document Writer installed and set as default printer. On the client side if the default printer is XPS or Nitro PDF creator, the report can be view and print correctly, report design in landscape will be able to show in the landscape in CR viewer, report design using custom paper size (e.g. Half Letter), CR viewer able to show it in Half Letter.
    The problem that I'm facing is when the default printer is set to HP LaserJet P1120 or others (I've tried Epson ESC/P Standard driver), the report is always shown in the portrait, and it will not be able to show in custom paper size either. Here is my code:
         Dim settings As New System.Drawing.Printing.PrinterSettings
         Dim rep as New ReportDocument
         rep.Load(sOutputFileName)     'The report is download from server and save in sOutputFileName
         SetReportPaperSize(rep, sPaperSizeName, False, settings) ' sPaperSizeName store the name of the custom paper used in the report
         CrViewer.ReportSource = rep
       Public Shared Sub SetReportPaperSize(rep As ReportDocument, paperSizeName As String, isHardCopy As Boolean, settings As Printing.PrinterSettings)
          Dim installedPrinters As Printing.PrinterSettings.StringCollection = Printing.PrinterSettings.InstalledPrinters
          Dim printers As New List(Of String)
          Dim sPrinter As String
          If installedPrinters.Count = 0 Then
             Return
          End If
          SetPrinterDefaultPaperSize(rep.PrintOptions, paperSizeName, settings)
          With rep.PrintOptions
             .PrinterName = settings.PrinterName
             .PaperSource = PaperSource.Auto
             If paperSizeName.Trim.Length > 0 Then
                .PaperSize = DirectCast(GetPapersizeId(paperSizeName, settings, rep.PrintOptions.PaperSize), CrystalDecisions.Shared.PaperSize)
             End If
          End With
       End Sub
       Public Shared Sub SetPrinterDefaultPaperSize(printOptions As PrintOptions, paperSizeName As String, settings As Printing.PrinterSettings)
          With settings.DefaultPageSettings
             If paperSizeName.Trim.Length = 0 Then
                . PaperSize = GetPaperSize (printOptions.PaperSize, settings)
             Else
                For Each size As Printing.PaperSize In settings.PaperSizes
                   If size.PaperName.EqualsTo(paperSizeName) Then
                      .PaperSize = size
                      Exit For
                   End If
                Next
             End If
             .Landscape = printOptions.PaperOrientation = PaperOrientation.Landscape
             .Margins.Top = printOptions.PageMargins.topMargin
             .Margins.Left = printOptions.PageMargins.leftMargin
             .Margins.Bottom = printOptions.PageMargins.bottomMargin
             .Margins.Right = printOptions.PageMargins.rightMargin
          End With
       End Sub
       Public Shared Function GetPaperSize(paperSizeId As Integer, defaultPrinterSettings As Printing.PrinterSettings) As Printing.PaperSize
          Dim settings As Printing.PrinterSettings = defaultPrinterSettings
          Dim result As Printing.PaperSize
          If settings Is Nothing Then
             settings = New Printing.PrinterSettings
          End If
          ' Default paper Size defined in the printer
          result = settings.DefaultPageSettings.PaperSize
          For Each size As Printing.PaperSize In settings.PaperSizes
             If size.RawKind = paperSizeId Then
                result = size
                Exit For
             End If
          Next
          Return result
       End Function
       Public Shared Function GetPapersizeId(paperSizeName As String, defaultPrinterSettings As Printing.PrinterSettings Optional defaultpaperSizeId As CrystalDecisions.Shared.PaperSize = CrystalDecisions.Shared.PaperSize.DefaultPaperSize) As Integer
          Dim settings As Printing.PrinterSettings = defaultPrinterSettings
          Dim result As Integer = defaultpaperSizeId
          If settings Is Nothing Then
             settings = New Printing.PrinterSettings
          End If
          If Not String.IsNullOrEmpty(paperSizeName) Then
             For Each size As Printing.PaperSize In settings.PaperSizes
                ' Height and Width in Printing.PaperSize is measure in hundredths of an inch
                If size.PaperName.EqualsTo(paperSizeName) Then
                   result = size.RawKind
                   Exit For
                End If
             Next
          End If
          Return result
       End Function
    Setting the PrintOptions.PaperSize and PageOrientation seem like no effect on the viewer. My code to load the report to CR viewer is much more complicated than the code I show above, I've a background worker thread to download the report, and when the worker thread finished download the report from the server, it will assign the report to CRViewer. Do the changes in report PrintOption before assign to CRViewe and after assigning to CRViewer make any different?
    I'm using VS2010, CR XI R2 (Version 11.5.3700.0). Please Help. Thanks
    Regards
    JC Voon

    Hi JC,
    CRXI R2 is a no go with VS 2010, these two are not compatible.
    With CR 11.5 use VS 2005.
    Or Use VS 2010 and CR for VS 2010 (13.0)
    Once you have the supported / compatible conbination of CR and VS, use the In Proc RAS .NET code from below KBA.
    http://search.sap.com/notes?id=0001561333&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031353631333333
    Also, see the KBAs returned by below search. The top right corner search box on this page is quite helpful.
    http://search.sap.com/ui/scn#query=crystal%252C+paper%252C+orientation%252C+.net%252C+sdk&startindex=1&filter=scm_a_site(scm_v_Site11)&filter=scm_a_modDate(*)&timeScope=all
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

Maybe you are looking for

  • How to Determine Length of variable up to period (.)

    I have  a variable called my_var  in an ABAP and it is passed many #'s  and they may or may not have some text following these #'s --- these #'s can have a  Length of up to 13 and will always have 3 Decimal Places.  I need to find a way to return the

  • Process wait SQL*Net message from dblink /SQL*Net message from client

    Hi There, We have an ETL process that we kindly need your help with. The process been running since Sun, where it transfers the data from one server (via remote query). The process was running ok till last night where it appeared to have stopped work

  • Report output as an attachment in.XLS format via email.

    Hi all, When i run my report in back ground, my alv report output is to be sent as an email attachment in excel (.XLS) format. The issue i am facing is that i have around 40 fields in the output and i need to create a Header line with the Field Descr

  • Help for your Android S5 Battery after a 5.0 install

                                   Return your Samsung Android S5 Battery back to normal! First, delete any unused apps and what unneeded apps can’t be deleted should be shut down! Also recheck your remaining apps for current update to work with 5.0 and

  • Way to stop being signed out?

     I'm sick and tired of having, "You have been automatically signed out due to inactivity. Please sign in again", notices.  Is there a way to stop having to continually sign in?