Page N of M incorrectly localized

Background : ASP.Net web site running 2.0 / 3.5 framework on a Windows 2003 Server with Crystal Reports 2008 runtime deployed to it. We're running a Crystal Report and exporting to PDF and streaming that to the user. We handle multiple languages so we cast the current thread to the browsers accept language on BeginRequest.
We just got a new server and deployed everything to them and for some reason the "Page N of M" special field page numbers are getting localized incorrectly. English users see "Página" instead of "Page". Japanese and Spanish users don't see the word at all and instead see "1/11". These are fields that Crystal Reports are localizing entirely on it's own - we don't have any special page formulas or anything - and we're at a loss as to why it's localizing it incorrectly. The same exact code is working on our dev and test servers just fine though so we're pretty sure it's not a code problem. Maybe something didn't get installed right or one of  the Crystal Reports resource files got corrupted on installation? Has anybody ever seen this happen before or is this a known bug that's hotfixed?
James C.

To review what we've found so far - If I iisreset the website and recycle the Application Pool that the website uses and then request a report in English then I get a report with English page numbering. If I change my browser language to Spanish and request a report then I get Spanish page numbering. If I change my browser language back to English and request a report then I still get Spanish page numbering. The page numbering stays in Spanish until some undetermined amount of time has passed or if I recycle the application pool.
Note: in our Global.asax we cast the current thread to the browser's request language for localization.
Here's what our report export code looks like. We're already using Close and Dispose.
           With crReport
                .SetDataSource(dsData)
                .DataDefinition.FormulaFields.Item("0Title").Text = "'" & strReportTitle & "'"
            End With
            Dim streamPDF As System.IO.Stream = crReport.ExportToStream(ExportFormatType.PortableDocFormat)
            Dim intFileSize As Integer = CInt(streamPDF.Length)
            Dim byteBuffer(intFileSize) As Byte
            streamPDF.Read(byteBuffer, 0, intFileSize)
            Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache)
            crReport.Close()
            crReport.Dispose()
            If Response.IsClientConnected Then
                With Response
                    .ClearHeaders()
                    .ClearContent()
                    .ContentType = "application/pdf"
                    .BinaryWrite(byteBuffer)
                    .Flush()
                    .End()
                End With
            End If

Similar Messages

  • I would like to know why when i make a web page and test in my local browser it works fine then when i tranfer to my server i does not work fine example i used javascript to put a prompt bar on a page and it worked fine local but on server not working

    how come when i make a web site and i test it in my local server it works fine when i tranfer to server certain things do not work example i used javascript to put in a prompt bar for a newsletter page at the server it did not work but at local it did also it works at MOZZILLA but not internet explorer i also have cs4 was wondering if there is a way to test a page in dreamweaver and then transfer   THANK YOU X-FACTOR-MEDIA

    In future, please try to make the subject line of your posts shorter. In this case the following would have been sufficient: "JavaScript works locally, but not on remote server".
    Short, but meaningful subject lines make it easier for others to identify what your question is about, and often bring faster help.

  • Page not loading correctly in local Preview

    When I preview in a browser—Safari on Firefox, the page doesn't load properly.
    Here's some background:
    It seems the problem centers around recently changing my local root folder to
    public_html--(to synchronize with my remote public_html root folder).
    All my pages on my local view, including Image Gallery (a template from project vii) pages had been in a
    subfolder: www
    After the reorganizing, all my pages updated and seem to be working
    correctly, except:
    1) When I preview (local) one of my Gallery Image pages with Safari, full
    size images can't be found—although all the links are correct.
    I looked at Safari's activity window; it showed errors in loading, as it was
    still looking for the full size images in the old www subfolder (which no
    longer exits) instead of the new root folder--public_html.
    2) The problem also happens when I create a new Image Gallery page.
    Note: these pages load correctly on the server.
    3) I would appreciate help with this.
    Thanks,

    Hard to comment without seeing any code but there's no need to rename your local root folder to be the same as your remote root folder.
    Provided the site definitions (local and remote) in DW are set correctly and the Host directory for the Remote Site is set to "public_html", DW can handle the file paths.
    I have several sites on different areas of my local hard drive with various folder names. Likewise the Host directory for the Remote Site varies: html, public_html, web and so on. DW is happy with all of them.

  • Viewing PDF's in Safari 3 w/ "2 Pages" Enabled - Cover Displays Incorrectly

    When viewing PDF's in Safari 3 with "Two Pages" view enabled, pages 1 and 2 are displayed on the same spread. 3 and 4 are together and so on. Normally, when viewing two pages at a time, I'm expecting the front and back covers to appear seperately from the spreads. 2 and 3 are displayed together and so on (the assumption being that the PDF is based on a book-style layout).
    Preview displays PDF's the "correct" way, and Safari shows them "incorrectly", yet I can't find a relevant option in either application.
    In Acrobat, the equivalent option is View -> Page Display -> Show Cover Page During Two-Up.
    Any ideas?

    the application is safari. - in this case is it safari thats displaying the PDF or a plug in. at this point i dont have any 3rd party PDF plug ins.
    the link is on a website, i have not downloaded the PDF. When I click on the link, another safai window opens and it displays the PDF. I close the window, and click on the same link. When that happens, the gibberish appears.
    ....at this point...im maybe thinking that its a problem with the web server? This doesnt happen all the time.
    Thanks so much for you interest in my problem. =)

  • HtmlLoader - is it possible to catch/redirect page content? like a Local cache?

    Here's the scenario, I have a kiosk app I'm working on, and am loading html pages within it using the HTMLLoader class. I'm curious if it is possibale to catch requests mainly for video and images from the html page, and redirect the request.
    Essentially what i want is a way to set up a local cache of images and video, and possibly data, and have the parent AIR app manage it. As example, the content is managed via an online CMS, and when the kiosk runs, I'd like it to cache all the images/videos it needs locally for playback, and add any new images/content as it changes.
    I have complete control over both ends, so if access/permissions/crossdomain files need to happen, that's no problem.
    Thanks in advance!

    here is a nice piece of code that might get you started!
    http://cookbooks.adobe.com/post_Caching_Images_to_disk_after_first_time_they_are_l-10784.h tml

  • Airport Extreme 802.11n reports incorrect Locale and Country Code

    I have just replaced my MacBook Pro CoreDuo's Airport Extreme card with a Mac Pro one that gives excellent throughput with 802.11n but, depending upon which channel it connects to the wireless router, System Profiler displays a weird selection of locales and country codes (e.g. locale: RoW, country code X2) .... perhaps this does't matter ... perhaps it does as other threads here report not being able to make a connection when an available channel is supposed not to be available in the incorrectly reported country.
    What controls this (incorrect) choice and how can it be fixed?
    System Profile of en1:
    Card Type: AirPort Extreme (0x14E4, 0x88)
    Firmware Version: Broadcom BCM43xx 1.0 (5.10.91.19)
    Locale: RoW
    Country Code: X2
    Supported PHY Modes: 802.11 a/b/g/n

    AirPort-Guy wrote:
    The Locale is programmed into the card. If you bought your Mac Pro in a country other than where you are currently living, and you are using the card that came with it, you could be violating your country's wireless regulations.
    Actually this is not entirely correct.
    Rather the Mac sets its AirPort country code based upon the first beacon packet containing regulatory domain information received when the Mac starts passively listening to incoming packets after the AirPort interface is enabled.
    RoW does stand for "rest of world" and the "X" domains are temporary used ones when searching for regulatory domain information.
    So if you're seeing your Mac's AirPort card programmed to a different country code regulatory domain than it should be, it's because someone near you is using an illegal wireless access point/router.

  • JSTL Displaying incorrect Locale

    I'm seeing a very strange problem. Here's what I know. I am using Struts 1.2.9 & JSTL. I have a Filter that filters all requests and sets the Struts and JSTL Locale session variables using this pseudocode:
    If there is a "locale" request parameter, create a new Locale with that value and use that, otherwise
    If there is a Locale in the Globals.LOCALE_KEY Session attribute use that, otherwise
    Get the Locale using the request.getLocale() and use that
    If a Locale was found, set the Globals.LOCALE_KEY Session attribute and call Config.set(ses,Config.FMT_LOCALE,locale);
    I have a bunch of debug logging in there and everything appears to be working correctly.
    I have also created a Custom Tag that dumps a bunch of "useful" information to the logs including both of the Session attributes above. They are now showing up as:
    [15:41:54.118] LogConfigSettingsTag.doStartTag: JSTL Configuration Settings
    [15:41:54.118] LogConfigSettingsTag.doStartTag: * javax.servlet.jsp.jstl.fmt.locale: en_US
    [15:41:54.118] LogConfigSettingsTag.doStartTag: * javax.servlet.jsp.jstl.fmt.localizationContext:
    [15:41:54.134] LogConfigSettingsTag.doStartTag: Struts Configuration Settings
    [15:41:54.134] LogConfigSettingsTag.doStartTag: * org.apache.struts.action.LOCALE: en_US (3)
    [15:41:54.134] LogConfigSettingsTag.doStartTag: Session Attributes
    [15:41:54.134] LogConfigSettingsTag.doStartTag: * org.apache.struts.action.LOCALE: en_US
    [15:41:54.134] LogConfigSettingsTag.doStartTag: * javax.servlet.jsp.jstl.fmt.locale: en_US
    So everything looks correct, but if my Accept-Language header is en-us,en;q=0.8,fr-ca;q=0.5,fr;q=0.3 the JSTL fmt:message tag chooses the French resources over the English. If the Accept-Language header is en-us,en;q=0.5 the JSTL fmt:message tag correctly uses the English resources. And no matter which Accept-Language header is sent, Struts bean:message uses the right resources.
    If anyone has any idea what could be causing JSTL to use the wrong resource file, I'd really appreciate a pointer. I've been banging my head on this one for days.
    (*Chris*)

    And for those interested, here is the JSP, and support files that I threw together to test this functionality.
    Properties files for the WEB-INF/classes directory:
    testResources.properties
    line1 = Are you sleeping,
    line2 = Brother John?
    line3 = Morning bells are ringing,
    line4 = Ding ding dong!testResources_fr.properties
    line1 = Fr�re Jacques,
    line2 = Dormez vous?
    line3 = Sonnez les matines,
    line4 = Din, din, don!in struts-config.xml added the mapping for this bundle:
    <message-resources key="rhyme" parameter="testResources" />And the page resourceTest.jsp:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <%@ page import="java.util.Locale"%>
    <%@ page import="org.apache.struts.Globals"%>
    <%@ page import="javax.servlet.jsp.jstl.core.Config"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
    <%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Test Page</title>
    </head>
    <body>
    <h1>Test page</h1>
    <h2> Server Info </h2>
    Server info = <%= application.getServerInfo() %> <br>
    Servlet engine version = <%=  application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
    Java version = <%= System.getProperty("java.vm.version") %><br>
    Java home = <%= System.getProperty("java.home") %><br>
    Session id = <%= session.getId() %><br>
    <hr>
    <%
         String invalidate = request.getParameter("invalidateSession");
         if (invalidate != null) {
              session.invalidate();
              response.sendRedirect("resourcetest.jsp");
              return;
         String localeString = request.getParameter("localeString");
         if (localeString != null) {
              Locale locale = new Locale(localeString);
              session.setAttribute(Globals.LOCALE_KEY, locale);
              Config.set(session, Config.FMT_LOCALE, locale);
    %>
    <form><select name="localeString">
         <option value="en">English
         <option value="fr">French
    </select> <input type="submit"> <input type="submit"
         name="invalidateSession" value="Invalidate Session"></form>
    <hr>
    <fmt:setBundle basename="testResources" scope="session" />
    <table cellpadding="5" cellspacing="5">
         <tr>
              <td>
              <h2>JSTL Messages</h2>
              <fmt:message key="line1" /><br>
              <fmt:message key="line1" /><br>
              <fmt:message key="line2" /><br>
              <fmt:message key="line2" /><br>
              <fmt:message key="line3" /><br>
              <fmt:message key="line3" /><br>
              <fmt:message key="line4" /><br>
              <fmt:message key="line4" /><br>
              </td>
              <td>
              <h2>Struts messages</h2>
              <bean:message bundle="rhyme" key="line1" /><br>
              <bean:message bundle="rhyme" key="line1" /><br>
              <bean:message bundle="rhyme" key="line2" /><br>
              <bean:message bundle="rhyme" key="line2" /><br>
              <bean:message bundle="rhyme" key="line3" /><br>
              <bean:message bundle="rhyme" key="line3" /><br>
              <bean:message bundle="rhyme" key="line4" /><br>
              <bean:message bundle="rhyme" key="line4" /><br>
              </td>
         </tr>
    </table>
    <hr>
    <h3>Preferred locales</h3>
    <table border="1">
         <c:forEach var="attr" items="${pageContext.request.locales}">
              <tr>
                   <td><c:out value="${attr}" /></td>
              </tr>
         </c:forEach>
    </table>
    <hr>
    <h3>Request Headers</h3>
    <table border="1">
         <c:forEach var="h" items="${header}">
              <tr>
                   <td><c:out value="${h.key}" /></td>
                   <td><c:out value="${h.value}" /></td>
              </tr>
         </c:forEach>
    </table>You will need to add French as a potential language.
    In IE I did this under Tools: Internet Options.
    Click the "Languages..." button near the bottom, and added French.
    The dropdown box chooses between English/French.
    The button invalidates the session, at which point the JSTL version shows French, whereas Struts shows English.
    Adding a specific resourcebundle for English (rather than using the default one) resolves this issue
    Cheers,
    evnafets

  • Problems running asp pages on windows 7 IIS local host

    Hi,
    I've just put DW CS5 onto my new Windows 7 machine, and am having problems trying to run asp pages on the IIS local host. With DWmx and windows XP I had no problems, but with the new DW and the new operating system - W7 - it's impossible!
    I fill in the all the basics, and am able to set up a remote local site in the wwwroot folder under a new file I have created called "websites". However I keep getting an error 401.3 Unauthorized message in IE9 when trying to view the site I'm working on locally.
    It suggests that I check the ACLs for the file that is being requested, which I have done and have given all the files full permissions - but I still get the same message.
    I'm going to a trade fair where I can't connect the interet, so I have to find a way of showing my site on my local machine.
    Has anyone had this problem with the new version of IIS for W7 and asp pages - and can anyone help? I'm desperate!!
    Cheers,
    Seb

    Hi Mooreski,
    No, I don't have Skype - but I did what you suggested, and now I get the following:
    I have given all the files in the IIS folder - including the website folder all the permissions necessary, but I still get this!
    This is the IIS app and what I have set up...
    Am I doing the right thing here?
    I will set up a skype account - and contact you
    Cheers,
    Seb

  • EH&S WWI Issue-Page no is printing incorrect

    Hi all,
    I have a problem when issuing a printout of an MSDS document from CG54 .The pagenumbers are not incrementing.For eg if i have 3 pages the print out shows 0 of 3 in all the pages and not as 1 of 3 ,2 of 3 etc...can anyone help on this??
    Is this related to WWi Server or the template design???do anyone know how the pagenumbers are printing through WWI??Pls help.

    Hi,
    I have Created a format "X_65_150" but while is print with output device LOCL then i'm getting error "Format "X_65_150" not defined for printer "LOCL"". Can anyone lemme know how to assign my new format to LOCL ??
    Thks in Advance
    Regards
    VEnk@

  • Acrobat XI 11.0.0.7 on Mac renders 2 pages in a PDF incorrectly as blank. Any ideas to why?

    Hi
    We have a 26pp PDF document which when viewed in Acrobat XI 11.0.0.7 on OS X, 2 pages are rendered as blank in the main page view and the thumbnail view. All other pages render fine as do all other PDF documents. Viewing the same PDF document in Acrobat 10 and 9 on the same Mac shows both pages fine.
    To add mystery to the scenario, the same 26pp PDF viewed in Acrobat XI 11.0.0.7 on two other Macs running OS X is all good and the two pages in question on the other Mac view fine.
    Is there anything in particular that could cause this problem on the one Mac?
    Thanks for your time.

    I know this a weird issue so I'm not surprised I've had no reply to my question. Never the less, it is a real problem and maybe I need to file a bug report with Adobe. What would be the best way to do that?
    Also, looking at this again, could it be anything to do with the fact that the Mac that has this issue with Acrobat XI is running OS X 10.6.8?

  • Page preview displaying iViews incorrectly

    I am just learning Portal and have run into an issue that I'm sure folks out here can help me with. 
    I created two iViews from the SAP iView transaction template.  Both transactions are custom transactions, pointing to custom Z-programs reports.  I have added these iViews to a page, assigned the standard side-by-side layout, and changed the iView Height properties to be Automatic.
    The problem is, when I preview the page, the Tray Headers correctly display the title assigned to the transaction, but the selection screen displayed in each iView tray is the same.  Whatever iView displays first, the second iView seems to use this same data for its display.
    It seems to be an issue related to caching, but as I am new to Portal I am not sure where to look to solve this problem.
    Thanks in advance, and any help would be appreciated.
    Terri

    Hi Terri,
    If you think that the issue is with regards to cache, then have a look at this document for more information
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/71d7b8dc-0701-0010-dfba-881dba1b5b95?QuickLink=index&overridelayout=true
    Regards,
    Ganesh N

  • Can't Load Pages - Proxy PAC file stored locally

    Hi folks,
    I was using last Safari 2 version and recently updated to Safari 3.0.4 and 3.1 and then it was impossible to connect using my corporate VPN solution. We use Juniper Network Connect 5.5.0 solution and during connection, this software changes IE7 proxy configuration by editing PAC URL (proto=http://, when connected on corporate network) to a PAC path of a file stored locally in "...\Application Data\Juniper Networks\Network Connect 5.5.0\instantproxy.pac" (proto=file://, when abroad). When I disconnect it, it reverts the changes back to an URL address.
    When I found out this, I tried to copy and paste the proxy path stored in IE7 to the Safari address bar and tried to load the file.
    IE7:
    +file://C:\Documents and Settings\MyName\Application Data\Juniper Networks\Network Connect 5.5.0\instantproxy.pac+
    Safari transform the pasted address to:
    +file:///C:/Documents%2520and%2520Settings/MyName/Application%2520Data/Juniper%25 20Networks/Network%2520Connect%25205.5.0/instantproxy.pac+
    And tries to load but then I have a "Safari Can't find the file." error.
    Looking back to Safari transformed address, I saw that there is "%2520" code that represents the spaces. But wait..."%20" isn't the space representative code? I think, we have a small bug here...
    So I replaced "%2520" codes by "%20" and tried to load the file. As expected the file loads!!!
    I reported this as a bug but I hope that someone can share some experience with Safari and|or Juniper Network Connect in order to find a workaround!!

    Well without any explanation from Apple, it appears that this bug was fixed. I tested it again on Safari 5.0.4 and it's working great now.

  • Man pages for "expr" command incorrect

    There appears to be a loss of functionality from the HP-UX environment to the SOLARIS OS that is not noted in the man pages. The man pages for Solaris 5.8 insist that the command expr allows for the argument "substr" as well as "length". However this functionality is not available though the expr command.
    Many of our in-house scripts use logic such as
    expr substr $VAR 3 2
    or
    expr length $VAR
    Which was valid in the HPUX 10.20 environment. However this command in the Solaris environment results in "expr: syntax error" errors. According to the MAN pages the errors we are having are not happening.

    Actually, the man page says that "length" and "substr" are supported only on Solaris x86 and only for compatibility with INTERACTIVE UNIX.
    You could use a little script like this one to replace "expr substr" and "expr length" (perl considers the substr's "offset" to be zero-based -- subtract one from $ARGV[2] if HPUX does not).
    #!/usr/bin/perl
    if ($ARGV[0] eq "substr") {
    $out = substr($ARGV[1], $ARGV[2], $ARGV[3]);
    elsif ($ARGV[0] eq "length") {
    $out = length($ARGV[1]);
    else {
    print "usage: perl-expr substr string offset length\n";
    print " or perl-expr length string\n";
    exit 1;
    print "$out\n";
    exit 0;

  • No email tabs- switch pages, clock sending-time incorrect- future-time,no paragr.

    Since the last rebuild, when many were locked out of email without any forewarning or notification of the rebuild, so that they would KNOW what was going on, the quality of Comcast email has declined drastically!1. I can no longer paragraph... everything is run together after the email is sent. The coding by Comcast in sloppy and inaccurate and no effort is being made to fix this! Some people care about punctuation and appearance of emails. Comcast does not. 2. The clock which says when the email was sent is inaccurate and is set at a time  many hours in the future, which hasn't even occurred yet!!! 3. Transmission of emails is taking up to 48 hours to be received!!! Abyssmal Comcast service!! Maybe the transmission time is wrong on purpose, to cover up the fact that the transmission took 48 hours??? 4. There are no longer tabs at the top to switch from email to email. We need this function restored!!! 5. Why are there so few choices regarding font, etc. Why is there no stationery like Yahoo provides, for sending  special greetings? How hard is that to code???  No effort made by Comcast.... only empty promises and apologies.... and they take your money anyhow without fixing defects. 

    Yes, it seems to be a kernel bug. Previously, my wife used Windows for years and nothing like this happened. Now, she tells a lot about Linux systems :-)
    An example of this very-ugly-workaround for somebody who'll find this topic struggling with the same problem:
    $ cat /etc/pm/sleep.d/99_fix_time_shift
    #!/bin/bash
    # fixing https://bbs.archlinux.org/viewtopic.php?id=173487
    case "$1" in
    suspend)
    date +%s > /tmp/suspend.log
    resume)
    was=`cat /tmp/suspend.log`
    now=`date +%s`
    # time shifts for 68 hours
    if [ $now -gt `expr $was + 244800` ]; then
    date -s "`date -R --date="-68 hours ago"`"
    ## sleep 30; ntpdate ntp.ubuntu.com
    fi
    esac
    Last edited by shurup (2014-03-26 16:25:55)

  • Since upgrading to FF5, i get the following xml error on local development server (IIS 7 Windows 7): XML Parsing Error: no element found, Line Number 1, Column 1. The pages display fine when uploaded to hosting server. How do i resolve it

    All aspx pages running locally via IIS or Visual studio inbuilt server can not be displayed in FF5. This problem has only occured since upgrading to FF5. The same sites/code worked fine with the previous version of FF.
    When uploaded onto a hosting server the pages display fine. Pages all display ok on local IIS on IE, chrome, opera etc.
    I do go through a proxy server, but so do the other browsers.
    All this means i can't develop locally on FF. Help please!

    Maybe your application doesn't support "Send NTLMv2 response only. Refuse LM & NTLM".
    https://support.software.dell.com/zh-cn/foglight/kb/133971

Maybe you are looking for