Title of a Crystal Report PDF being displayed in a web browser

I have an application that previews a report in a web browser by saving the report to the web server and then opening a new tab/window pointing at the pdf that was just created. Right now it is displaying the server name(and path to the report on the server I believe) in the title bar instead of the report title. Is it possibel to set the report title somewhere in the code so the user sees whatever I want to show them instead of anythign to do with the server?
Thanks,
- Mike

Hi  Mike,
This will get the name of the report and all of it's parts and add the .pdf to the file name:
string MyRptName = rpt.FileName.ToString();
MyRptName = MyRptName.Substring(MyRptName.LastIndexOf(@"\") + 1, (rpt.FileName.Length - 3) - (MyRptName.LastIndexOf(@"\") + 1)) + "pdf";
Don

Similar Messages

  • Incorrect PDF being displayed periodically in the browser

    I want to start by thanking anyone who could shed light on this problem. 
    We have a web application that dynamically generates PDF files per a user request in a web application.  98% of the time the proper PDF gets opened in the browser correctly, whether it be IE or Firefox.  The other 2% of the time, no matter what url data was requested from, an incorrect PDF is displayed.  This incorrect PDF that gets displayed is one that was requested and opened in a previous request and could still be open in a browser tab.  Once this state is reached all PDFs that are requested do not line up with the requested PDF, meaning they are all incorrect.  Once the browser is refreshed the problem stops happening for another stretch of time. 
    I have read posts that discuss placing a random number in the url to "trick" the browser plugin from thinking it already has the PDF.  We have done that.  In fact this issue appears to not be impacted at all by the url.  For example, when this problem happens I can go to https://appname/one/pdf and get the PDF that was requested and sent back when I went to https://appname/two/pdf.  These are two clearly different urls even without the random number that we placed on the end as a parameter and I still receive the PDF from the second URL. 
    We debugged the server side code and we are 100% sure that we are sending the correct PDF back to the client by streaming the PDF to a file on the server prior to sending it back to the client. 
    One thing I have noticed is that currently we are not specifying the Content-Disposition header when we return the PDF to the browser.  This means that there is no filename being provided to the front end and the plugin.  Is it possible that the Adobe Reader plugin eventually gets confused as to what file to display if there is no specific file name provided for the PDF from the server, with the keyword there being eventually as it is an intermittent problem? 
    We can easily set the Content-Disposition header to be attachment; filename="somename.pdf" but given the intermittent nature of this bug we would like to get some feedback as to if this fix is logical given this issue.  If it is not logical we would appreciate any other information that may help us troubleshoot this issue.  The alternative is to rewrite the document generation code to output HTML, and I really do not want to do that. 
    We are using the Adobe Acrobat 9.4.5.236 add-on to Firefox 10.0.3, Adobe Reader 9.4.0, and Internet Explorer 8.0.6001.18702.  All of these versions are not able to be upgraded, meaning this is the baseline we have to support.  We also operate, still, on Window XP Professional Service Pack 3. 
    One last comment, client side operations by the user are not valid solutions either.  I have already suggested asking the user to uncheck the open in browser option in Adobe Reader but our customer does not find that to be a valid solution.  To date we have not been able to recreate the issue when the PDF is opened in Adobe Reader proper and not the browser. 
    Thanks again for any help and information. 

    In case someone, other than me, stumbles across this post.  The solution I suggested in the opening post did not work.  When a user opens a PDF using the Reader Plug-in in Firefox they still have the potential to see the previous PDF.  The interesting thing is, as it appears right now, that this only occurs when a user closes a Firefox tab that contained the previous PDF and then triggers a different PDF to be opened in Firefox.  What seems to be happening is that the Reader Plug-in ignores the file it is supposed to open and recycles the PDF that was in that tab before it was closed.  Which is funny because the URL of that tab points to the new file that was downloaded into the temp directory but the contents of the tab is still the previous PDF.  Not sure if the plug-in just doesn't clean out the previous contents or what but it clearly is an issue that resides in the Adobe Reader Plug-in for Firefox. 
    I am not sure what we are going to do at the moment but if we find a solution, other than don't open the PDF in Firefox, I will be sure to post it here.  However, for right now there is nothing coming to mind. 

  • Crystal report viewer are displaying blank page after deploying in web server

    Dear friends,
                       i have designed crystal report (in VS2010 &  CRRuntime_64bit_13_0_6 installed in web server) it's working fine in local machine even web server also but in http://localhost, if i change from localhost to my domain name or local IP address(like http://192.168.1.71) then it's getting blank page.
    but same report if i open in pdf format it's working fine.
    I have tried the following one. But this is not working for me.
    Copy the entire Crystal Report Support folder
    C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13
    in web.config, the below code also added.
    <sectionGroup name="businessObjects">
          <sectionGroup name="crystalReports">
            <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />
          </sectionGroup>
        </sectionGroup>
    <crystalReportViewer>
    <add key="resourceURI" value="~/crystalreportviewers13"/>
    </crystalReportViewer>
    please suggest me some solutions to resolve this issues...
    Regards,
    Manikandan.V

    Have a look at this blog for how to configure the viewer:
    Visual Studio 2012 Crystal Report not working on Windows Server 2012/ 0x800a1391 &amp;#8211; JavaScript runtime error: &…
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Crystal Report Images Not Showing - JSP inside /WEB-INF folder

    Hi Experts,
    I am using Crystal report for Eclipse and also using Struts2 and tiles framework combination.
    The problem is when viewing the report all I've got is red X on all images and the graph image also not showing. This is when I use tiles and my jsp is inside the web-inf folder.
    This is my struts link: href="s:url value='/report/reportOpen.action?report=1'
    I've checked that the path to the viewer generated HTML is not correct. see code below.
    src="../../../crystalreportviewers/js/crviewerinclude.js"
    But when I test to access a simple jsp viewer that resides on the web root folder, this works fine but of course this is not what I want to have. I need to have my banner and menus on top of the report page (using tiles)
    This is my jsp link: href="s:url value='/ReportViewer.jsp?report=1'
    Viewer generated HTML below.
    src="crystalreportviewers/js/crviewerinclude.js"
    This might be a common problem and that you can share to me your solution.
    Note: I removed the script tags because I can't submit this entry.
    Thank you  in advance,
    Regards,
    Rulix Batistil
    Crystal Report Images Not Showing - JSP inside /WEB-INF folder

    Hi Saravana,
    After a few experimentation from your idea i was able to figure out the problem and now it is working.
    I don't have to copy the folder to where my jsp resides but still maintains it in the root location:  web/crystalreportviewers
    The changes should always be in web.xml.
    1st: change the crystal_image_uri value to ../crystalreportviewers
    2nd: change crystal_image_use_relative value to "web"
    Change to "web" instead of webapp because that is what I named my web root folder.
    <context-param>
              <param-name>crystal_image_uri</param-name>
              <param-value>../crystalreportviewers</param-value>
         </context-param>
         <context-param>
              <param-name>crystal_image_use_relative</param-name>
              <param-value>web</param-value>
         </context-param>
    Thank you. You showed me the way on how to solve the 3 day problem.
    BTW, my next problem is when clicking on any buttons prev/next/print/export, I got this error HTTP Status 404.
    Well, at least for now I can view my initial report.  I just need to figure out the next issue and with the help of the great people here in the forum.
    Thanks a lot.
    Regards,
    Rulix
    Edited by: Rulix Batistil on Nov 26, 2008 7:27 AM

  • Display files in web browser

    Hi
    I need to be able to display files(doc, pdf, images etc) in the web browser. My purpose here is just to display the file. Can we do it using Linktourl?
    Thanks
    Jay

    Hi
      Check this thread. You will get the required info you need. If you require more clarifications let me know
    Re: Opening documents...
    Also check this thread
    Re: Display File residing on WAS
    Hope that was helpful
    regards
    ravi

  • OpenGL in C++  displayed on a web browser using java??

    I have a OpenGL application written in CPP that I would like to display on a web browser.
    I was wondering if their is a way to do this using java. Maybe somekind of java wrap.
    Thank you

    Maybe some kind of ActiveX control perhaps ?
    Not too familar with ActiveX programming though...
    regards,
    Owen

  • How do I send entire pdf form via email from web browser

    How do you send a pdf completed form on your web browser via email to email address?

    Hello Wayne, see no offense in this message
    There is a faster scheme.
    Copy the range of cells to send (it may be an entire table)
    Enter the application entitled Preview.
    File > Create a new doc from the clipboard
    File > Send the selected PDF document (I'm not sure of the exact wording).
    It's the highlighted one.
    Bingo, it will create a mail with the PDF embedded.
    Yvan KOENIG (VALLAURIS, France) jeudi 3 novembre 2011 22:32:21
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Generated Crystal Report PDFs are different on Windows server

    Post Author: present
    CA Forum: .NET
    Hi,
    I created Crystal Report template (with two columns on one
    page) inside VS 2005 on my Windows XP Professional machine.
    But there are formating problems on both XP and Windows
    Server machines:
    1) On Windows XP machine, I have to overlap the two columns
    on the page inside VS 2005 editor in order to generate
    correct PDF file (without overlap). How to fix the the
    overlapping problem in editor?
    2) On Windows 2003 server: After I put the template on
    Windows 2003 server that has no VS 2005 installed (only
    CRRedist2005_x86.msi was installed), the generated PDF has
    different font size and layout (such as page size, column
    overlap, etc).
    Do I have to install VS 2005 on server too? It is really
    frustrating that I have to print document generated on the
    server before I know if the template works fine or not.
    Any help is highly appreciated!

    Typically when you are seeing page formatting issues on different machines, it could be because of printer drivers (or lack of).  The reporting engine relies on the printer driver configured on the machine to provide information so that a page can be properly rendered.  If you designed the report on your dev machine which is using PrinterA and then deploy to another machine using PrinterB, the formatting could be off.  So make sure that the exact same printer driver is being used on these machines.  If your deployments are expected to go to different machines where you don't know what printer will be installed, then you will need to design the report such that it can be rendered as best as possible.  Another option is to check the "No Printer" option and this should render the report the same on any machine with any printer, but then you'll need to make sure you handle any scenarios where the user wants to print to the printer.
    If this is an ASP.NET application then permissions could play a part if the printer drivers cannot be accessed.  There are whitepapers on the BOBJ support site that have information on to configure CR to print reports in ASP.NET apps.
    -MJ

  • Sections of report not being displayed on some systems

    Post Author: jlutz
    CA Forum: General
    Hello... strange issue... We have these Crystal 11 reports deployed that are being called via a VS .NET 2005 application.  The reports display fine on most systems, but on some systems (Dells, a few years old, 512mb of ram), sections of the report are not being displayed.  For example, on one report parts of the header are not displayed, nor is some of the subtotal sections etc.However, if they zoom to 75%, they can view the subtotal section but the header part disappears. Additionally, if they export or print the report, it comes out just fine! Any idea what could be going on here? Thanks! 

    Post Author: PeterLiebich
    CA Forum: General
    I have issues in ReportDesigner  when I have my hardware acceleration set at maximum try reducing it. Goto
    ControlPanel-> Display Properties (settings Tab) -> Advanced Button -> troubleShoot tab. I had to set my down by 4 notches before it worked. - Try setting it to none to see if it fixes your issue

  • Crystal report -How to display multiple lines in line chart?

    Hi,
    M struggling to display multiple lines in line chart. All the values m fetching it from database into data table in below format & data type
    Category(String).....year(Int).....graph_values(Int).....table_value(String)
    Test.........................2006.......... -100............................(100)
    Avg..........................2006..........20................................20
    Median......................2006...........5................................5
    Test..........................2007...........500.............................500
    Avg...........................2007............90..............................90
    Median.......................2007............45..............................45
    M using cross tab to display data and chart to plot line. Following fields I used in Cross tab Expert & Chart expert
    Cross tab expert-
    Rows u2013 category
    Columns u2013 year
    Summarized fields u2013 Min of table_value
    In Chart Expert u2013
    On Change of - Year
    Show values - graph values
    In cross tab m able to see the data properly but not in graph.I have three categories. Hence it should plot three lines in line chart but m able to see only one line for test category.
    FYI u2013 using VS 2008 and crystal report assembly version 10.5
    Urgent. Please reply soon.
    Thanks
    ThakurS

    I got the solution.
    In Chart Expert - I should use
    On Change of -- Year, Category
    Show values -- graph values
    Thanks,
    ThakurS

  • Crystal reports 11: Values displayed in crystal report not showing in VB6

    Hi!
    I updated an existing lower version of crystal report 7 to crystal report 11. Changes are the following:
    1. sql query in VB6 to add fields
    2. sql query in crystal report to manipulate values and not use formula. crx11 doesn't allow summary/total in formula fields.
    3. report orientation
    4. additional fields to view
    5. font sizes, length, can grow properties, etc.
    When I tested it directly in crx 11, all fields/values are displaying correctly. When I integrated it in VB 6 using Crystal ActiveX Report Viewer Library 11.0 and CR Viewer object, the field is blank.
    I've tried several checking like field suppressions, conditional suppressions, etc.
    By the way, I also have a report using a subrepot with conditional suppressions. Same thing is happening. The subreport data only displays the alloted space but does not show values in VB6.
    Thank you in advance for your help.
    Edited by: Naga01 on Jun 28, 2011 8:46 AM

    Thanks for your response.
    Before I read your response, I tried tweaking my reports and was able to resolve the issue.
    Steps taken to solve the issue are the following:
    a. Value not showing one field of four (4) reports.
    Solution: I created new ones and integrate it in VB 6. The values are now showing. Tweaked on the line object properties, got a problem with the extended line but solved it by adjusting the height of the detail section.
    b. Value not showing in sub-report.
    Solution: My report used a shared variable so I can pass the condition to my sub-report. I used the new reports and just pass a query during runtime. The values in the subreport is still not showing. I added a formula and called the value in it. Values in the subreport is now showing.
    I'll try to update the crystal reports version as suggested at a later time.

  • SAP NetWeaver Portal Crystal Reports PDF Export Problem

    Hallo all,
    We are working with BO Edge XI 3.1 with integration on SAP Netweaver Portal. The problem is that integrated in SAP Portal CR reports cannot be exported to PDF or printed out.
    I am using an URL iview with the parameter sOutputFormat=P to run the report.
    When I want to print out the report I get the warning message from Internet Explorer "The download of files from this page is for security reasons blocked. Click here..." --> Download the file. By clicking on the u201CDownload this fileu201D the report starts to run again. PDF export doesnu2019t happen.
    Did somebody have the same problem?
    Thanks a lot in advance!

    Hello Ingo,
    thanks a lot for Your help. I have already talked to my IT department and they are looking for the solution of this problem, too.
    Is there a documentation  about necessary settings in the browser to work with SAP NetWeaver Portal and Crystal reports?
    The problem is that on some clients the PDF export is working and on another clients not. The settings of IE seem to be equal.
    Regards,
    Katharina

  • Crystal Reports PDF Export problem

    Hi I'm using Crystal 8.5 for my reports in VB 6.0. We have intrepret as RTF in the report. Now when we export this report to PDF the nested bullets loose formatting. All bullets show up at the same level. Any idea how to fix this?
    Thanks
    Sudha

    Hello Ingo,
    thanks a lot for Your help. I have already talked to my IT department and they are looking for the solution of this problem, too.
    Is there a documentation  about necessary settings in the browser to work with SAP NetWeaver Portal and Crystal reports?
    The problem is that on some clients the PDF export is working and on another clients not. The settings of IE seem to be equal.
    Regards,
    Katharina

  • LabVIEW 8.0, Crystal report - PDF

    Has anyone tried developing a crystal report, and calling it in LabVIEW 8.0 via .NET dll so it prints a pdf report similar to printing a standard report?
    Kudos always welcome for helpful posts

    Hi Maximus,
    I've looked through what resources we have here, but it does not appear that anyone has attempted to call Crystal Reports using a .NET assembly -- in LabVIEW 8.0 or any other version. The best advice I can give is to check out the object model for Crystal Reports (or any other documentation you can find). I found a decent website here:
    http://support.businessobjects.com/global/interactive/xi/om/NET/default.html
    There's also a link to the SDK documentation:
    http://support.businessobjects.com/global/interactive/xi/om/NET/CRNET.zip
    Since there are currently no LabVIEW examples, you can try piecing one together based on the examples contained in that file. While I (personally) have not done this sort of thing much with .NET, I have been very successful in translating ActiveX to LabVIEW. As I mentioned earlier, there are toolkits out there (built on ActiveX, I believe) that already connect LabVIEW and Crystal Reports.
    I hope this helps you out at least a little bit!
    Charlie S.
    Visit ni.com/gettingstarted for step-by-step help in setting up your system

  • Java Crystal report PDF Export

    Hi,
    Thanks in adavance.
    Developed a crystal report with command level arguments(i.e constructed a query with dynamic parameters). Calling the same through a java programme. I want to know whether we can export crystal report into a pdf through java. When I tried it's giving me NullPointerException.
    Regards,
    Sudheer

    Here is snippet of code how I am exporting rpt file to pdf file. I didn't include every code here but I am hoping this will give you the idea. Please let me know if you need more info.
    public byte[] runReport(RPTParameters para) throws SQLException {
    byte[] reportData = null;
    ReportClientDocument reportClientDocument = null;
    try {               
         reportClientDocument = new ReportClientDocument();
         reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
         reportClientDocument.open(ReportDataConstants.CPS_RPT_FILE, OpenReportOptions._openAsReadOnly);
         ExportOptions exportOptions = new ExportOptions();               
         PDFExportFormatOptions pdfOptions = new PDFExportFormatOptions();
         exportOptions.setExportFormatType(ReportExportFormat.PDF);
         exportOptions.setFormatOptions(pdfOptions);
         ParameterFieldController paramFieldController = reportClientDocument.getDataDefController().getParameterFieldController();               
         paramFieldController.setCurrentValue("", "@ba", para.getBusinessAgreement());
         paramFieldController.setCurrentValue("", "ReportMonth", para.getMonth());
         paramFieldController.setCurrentValue("", "ReportYear", para.getYear());
         InputStream reportInputStream = reportClientDocument.getPrintOutputController().export(exportOptions);     
         reportData = new byte <reportInputStream.available()>;
         reportInputStream.read(reportData);
    catch (ReportSDKException e) {
    finally {
    return reportData;

Maybe you are looking for

  • IPhone 3G doesn't sync with Outlook calendar using Exchange

    First, let me just say I don't need push email, push contacts or push calendar. I just want my iPhone to sync with my existing Outlook 2007 setup like any other PDA would via ActiveSync, without having to rely on iPhone Enterprise Integration. There

  • Mac Preview Crashes

    Hi Guys, I am having problem with my mac preview application.  Every time I try to resize or crop or basically do any modification to the picture, my mac crashes. Does anybody ever have similar problem? Can someone please help?

  • TS2446 my issue with the account

    Hi, From three week I have an issue with my account. every time when I want to downloads any apps telling me that the account is disable. Also I have done reset password for the account. please find the solution. thanks

  • Logic 8/Digi 003. Core audio issues. Any ideas?

    I am running a 003 (surface, not rack) with PT7.4 on my iMac having some major issues with it. Last weeks issues (kernal panic from boot) caused me to to a clean install and reinstall all my audio software. Everything now appears to be working except

  • I'm having syncing problems after I upgraded my iphone 4 to ios 5 !!

    Yesterday I went to a cellular shop and asked to upgrade my iphone 4 to ios 5. Now that my phone is upgraded, I plugged it into itunes at home. I was trying to sync all the applications and the songs and the photos.... to my phone but each time the s