Problem with too small page size using Java 2D Printing API.

Hello,
I have problem with resolution of printer using Java 2D Printing API. Despite my printer has 600 x 600 DPI, inside java.awt.print.Printable.print(Graphics, PageFormat, int) I receive page format with 600 x 840 page size.
I have tried to set resolution using javax.print.attribute.PrintRequestAttributeSetand javax.print.attribute.standard.PrinterResolution, but with no result.
Can anybody solve this problem?
Regards,
Karl.

600 x 840 is a Point value; Point is defined as 1/72nd of an inch. Printers do have much higher DPI than this, but I believe that this DPI has to do with richness of the printed image, not an actual ability to color with that level of resolution. You might want to try calling zoom on your Graphics2D object. Otherwise, I don't know what else you can try.

Similar Messages

  • Problem with too small fonts

    Hi, after some update I've noticed my fonts are too slow on some websites, especially it applies for Google Mail:
    http://img518.imageshack.us/img518/1262/picture1ds9.png
    Google Reader is barely readable too, as well as some other pages. I've tried using Camino - the display is fine (not sure about Shiira, but I don't think it's WebKit rendering problem).
    Is anyone experiencing this too?
    Of course it's possible to increase the font size manually with Command - +, but this way some fonts are too big, while the other ones - ok. This annoyance led me to setting Camino as a default browser.

    To all of you if you happen to have same problem: reinstalling Safari helps .
    P.S. Although it was a huge shock when Safari 3 Public Beta refused to install. Try inserting Mac OS X first instalation disk given with your computer and install Safari 2 first. Then Safari 3 Beta follows .

  • Display problems with allowing web pages to use their own fonts, both on and off.

    I refer to the "Allow pages to choose their own fonts, instead of my selections above" option in the Content > Advanced tab of the Options menu.
    When I have this option unchecked, allowing my font choice to override the default non-image generated text for web pages, it seems that many icons and buttons on numerous sites are replaced by some sort of hex code malfunction. They appear as small boxes with four characters inside. I'm sure someone knows the official term for what these are and why they occur.
    When I have the option checked, however, any non-image generated text on numerous websites appears as an ugly Stencil font that I simply cannot find the origin of. It should not be and clearly isn't the default font for all of these different sites. By "non-image generated text", I mean any text that is not incorporated into the design of the page.
    This issue has persisted through several full re-installs. Any insight into a solution for one or both sides of this problem would be quite appreciated. Thanks for reading.

    You would have to remove (uninstall) or reinstall the Georgia font if it is currently corrupted.
    You can use the System File Checker to check for missing and corrupted font files.
    It needs to be run from an Elevated Command Prompt.
    Open a cmd.exe window as Administrator:
    Start, click Programs, click Accessories
    Right-click Command Prompt, and choose "Run as administrator"
    Click past the UAC Screen
    After the cmd.exe prompt, type: sfc.exe /scannow and press Enter
    * http://windowsforum.com/threads/system-file-checker-a-great-windows-fix-tool.19250/

  • We encountered a problem with some client machines that use Firefox version 24ESR and IE8. Ajax requests of aspx pages from Firefox are getting the following er

    I encountered a problem with some client machines that use Firefox version 24ESR and IE8.
    Ajax requests of aspx pages from Firefox are getting the following error from the iis server (iis version 7.5):
    Bad Request - Request Too Long
    HTTP Error 400. The size of the request headers is too long.
    From analyzing the request that was sent to the server, I saw that the request consist of only the viewstate of the aspx page.
    I tried to disable the viewstate for one page and the server got the request correctly.
    I do not encounter any issues on these laptops with postback requests from Firefox or when running the same application with IE8.

    Sometimes that means that the page address sent is loo long.
    Check the link address you are using.
    I can't help you further and will send for more help.

  • How do I make icons bigger? All icons are way too small for speedy use. no matter what I do they remain too small. Is there a way of getting them the same size as previous versions?

    All icons, such as refresh page, back, forward, stop and home etc; are just too small for comfortable use. For now I am uninstalling Firefox 4 and going back to 3.x. even the zoom page icons are too small.

    "I had read that GarageBand or the Musical Typing there can sometimes not display properly when the resolution is changed."
    Well, did you checked GB after you changed your resolution?
    Which setting did you change to?
    You & I have the same size iMac screen. My resolution setting is 1280x800. Everything fits perfectly in the windows & on desktop including the menu bar.
    All info in my windows are showing. I did not need to adjust my browser font size settings. I am sure you are aware of the browser font size settings. I use FF & the settings are in Preferences>Content.
    In the Finder window you can enlarge the icons & fonts also.
    Finder>View>Show View Options.

  • Problems displaying and editing long documents on small pages sizes

    Problems displaying and editing long documents on small page sizes
    I read this problem have called with the helpdesk they didn't know the solution but how can I find the solution:
    In Pages 09, I can't scroll down andand click on text to edit it!! All the mouse will do is draw gray transparentboxes and not place the cursor in the text. Again, like the display problem, itdoesn't happen at the beginning of the doc, but starts showing up around 50 to60 pages in ... I can't select text at the bottom of pages ... at 50 pages, thecursor can be clicked into anyplace on a page. Further and further down, the unselectablearea on any particular page creeps up from the bottom line by line: at 175pages in the unselectable area is 12 lines high; at 360 pages in theunselectable area is 25 lines high. and finally at around 440 pages down, Icannot place the cursor anywhere on any page all the way to the end of thedocument.
    I have Page versie 4.1

    What you get was described here several times.
    As we are end users like you, we can't change the app behavior.
    Under 10.6.8 you have the buttons allowing you to scroll one line up or one line down.
    Under Lion they are no longer available.
    Yvan KOENIG (VALLAURIS, France) jeudi 18 août 2011 17:53:12
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • [svn] 1991: Also reducing HexEncoder buffer size from 64K to 32K to help with the smaller stack size of the AVM on Mac as part of fix for SDK-15232 .

    Revision: 1991
    Author: [email protected]
    Date: 2008-06-06 19:05:02 -0700 (Fri, 06 Jun 2008)
    Log Message:
    Also reducing HexEncoder buffer size from 64K to 32K to help with the smaller stack size of the AVM on Mac as part of fix for SDK-15232.
    QE: Yes, please test mx.utils.HexEncoder with ByteArrays larger than 64K on PC and Mac too.
    Doc: No
    Checkintests: Pass
    Bugs:
    SDK-15232
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15232
    http://bugs.adobe.com/jira/browse/SDK-15232
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/rpc/src/mx/utils/HexEncoder.as

    I'm having this same issue. I also have this line in my log, which is curious:
    12/14/14 7:13:07.822 PM netbiosd[16766]: Attempt to use XPC with a MachService that has HideUntilCheckIn set. This will result in unpredictable behavior: com.apple.smbd
    Is this related to the problem? What does it mean?
    My 2010 27" iMac running Yosemite won't wake up from sleep.

  • Problem with an update page.

    I have a problem with an update page on my website
    Here's how it work
    values are defualted in from the advert table  - this works fine
    I should then be able to change the fields and click on the update button
    This works fine but ONLY when the O_year field is populated. 
    There doesn't seem to be anything special about the O_year field
    I thought spry text validation would of been causing the issues, but I removed them and have the same problem.
    For some reason the POST_MMupdate value is not being set to 'form4', which it is doing if O_year is set.
    Please can someone have a look at this, code,
    Also, is there a way of 'stepping through' dreamweaver code to debug it?
    Thanks
    Adam
    $colname_Advert = "-1";
    if (isset($_GET['advert_id'])) {
      $colname_Advert = $_GET['advert_id'];
    mysql_select_db($database_guitarswap_db, $guitarswap_db);
    $query_Advert = sprintf("SELECT * FROM advert WHERE advert_id = %s", GetSQLValueString($colname_Advert, "int"));
    $Advert = mysql_query($query_Advert, $guitarswap_db) or die(mysql_error());
    $row_Advert = mysql_fetch_assoc($Advert);
    $totalRows_Advert = mysql_num_rows($Advert);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form4"))
        //Сheck that we have a file
    if((!empty($_FILES["PictureLocation"])) && ($_FILES['PictureLocation']['error'] == 0))
          //Check if the file is JPEG image and it's size is less than 350Kb
          $filename = basename($_FILES["PictureLocation"]["name"]);
          $ext = substr($filename, strrpos($filename, '.') + 1);
          if (($ext == "jpg") && ($_FILES["PictureLocation"]["type"] == "image/jpeg") &&
        ($_FILES["PictureLocation"]["size"] < 350000))
            //Determine the path to which we want to save this file
              $newname = dirname(__FILE__).'/upload/'.$filename;
              //Check if the file with the same name is already exists on the server
              if (!file_exists($newname))
                //Attempt to move the uploaded file to it's new place
                if ((move_uploaded_file($_FILES['PictureLocation']['tmp_name'],$newname)))
                       // echo "It's done! The file has been saved as: ".$newname;
                else
                       // echo "Error: A problem occurred during file upload!";
            else
                 // echo "Error: File ".$_FILES["PictureLocation"]["name"]." already exists";
          else
             // echo "Error: Only .jpg images under 350Kb are accepted for upload";
        else
         // echo "Error: No file uploaded";
        $filename=$row_Advert['PictureLocation'];
        // set default opentoalloffers
    if (!isset($_POST['checkopentoalloffers']))
        $_POST['checkopentoalloffers'] = 'n';
      $updateSQL = sprintf("UPDATE advert SET PictureLocation=%s, O_Make=%s, O_Model=%s, O_Country=%s, O_Year=%s, O_Colour=%s, O_Body=%s, O_Neck=%s, O_Fingerboard=%s, O_Pickups=%s, `value`=%s, `condition`=%s,  W_Make=%s, W_Model=%s, W_Country=%s, W_Year=%s, W_Colour=%s, W_Body=%s, W_Neck=%s, W_Fingerboard=%s, W_Pickups=%s, Comments=%s, opentoalloffers=%s, ChangeFlg = %s  WHERE advert_id=%s",
                           GetSQLValueString($filename, "text"),
                           GetSQLValueString($_POST['O_Make'], "text"),
                           GetSQLValueString($_POST['O_Model'], "text"),
                           GetSQLValueString($_POST['O_Country'], "text"),
                           GetSQLValueString($_POST['O_Year'], "date"),
                           GetSQLValueString($_POST['O_Colour'], "text"),
                           GetSQLValueString($_POST['O_Body'], "text"),
                           GetSQLValueString($_POST['O_Neck'], "text"),
                           GetSQLValueString($_POST['O_Fingerboard'], "text"),
                           GetSQLValueString($_POST['O_Pickups'], "text"),
                           GetSQLValueString($_POST['value'], "int"),
                           GetSQLValueString($_POST['condition'], "text"),
                           GetSQLValueString($_POST['W_Make'], "text"),
                           GetSQLValueString($_POST['W_Model'], "text"),
                           GetSQLValueString($_POST['W_Country'], "text"),
                           GetSQLValueString($_POST['W_Year'], "date"),
                           GetSQLValueString($_POST['W_Colour'], "text"),
                           GetSQLValueString($_POST['W_Body'], "text"),
                           GetSQLValueString($_POST['W_Neck'], "text"),
                           GetSQLValueString($_POST['W_Fingerboard'], "text"),
                           GetSQLValueString($_POST['W_Pickups'], "text"),
                           GetSQLValueString($_POST['Comments'], "text"),
                           GetSQLValueString($_POST['checkopentoalloffers'], "text"),
                           GetSQLValueString('y', "text"),
                           GetSQLValueString($_POST['advert_id'], "int"));
      mysql_select_db($database_guitarswap_db, $guitarswap_db);
      $Result1 = mysql_query($updateSQL, $guitarswap_db) or die(mysql_error());
        $updateGoTo = "Member2.php";
         if (isset($_SERVER['QUERY_STRING'])) {
           $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
           $updateGoTo .= $_SERVER['QUERY_STRING'];
         header(sprintf("Location: %s", $updateGoTo));
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="Layout3.css" rel="stylesheet" type="text/css" /><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body {
        background-color: #FFF;
        margin-left: 20px;
    .twoColFixLtHdr #container #main3 #form1 div fieldset {
        border: thin ridge #CCC;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_goToURL() { //v3.0
      var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
      for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    //-->
    </script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="twoColFixLtHdr">
    <div id="container">
      <div id="header">
        <div id="Righty">
          <ul id="MenuBar2" class="MenuBarHorizontal">
        <li><a href="index.php">Search</a>      </li>
        <li><a href="Member2.php">Members</a></li>
      </ul>
      <p> </p>
    </div>
    <span id="LoginDiv">
        <?php
          if (isset($_SESSION['MM_Username']))
            echo "hello ". $_SESSION['MM_Username']. "";
            echo " <a href='Logout.php'>Log out</a> ";
        else
            echo "
                <a href='Login.php'>Login</a> / <a href='Register.php'>Register</a>
        ?>
        </a></span>
    <div id="Middle">
      <h1 align="center">GuitarSwap</h1>
    </div>
      </div>
      <div id="sidebar1">
        <h4>Members Area</h4>
        <ul id="MenuBar1" class="MenuBarVertical">
          <li><a href="Member2.php">My Adverts</a></li>
          <li><a href="NewAdvert.php">Create new Advert</a></li>
          <li><a href="UpdateUserDets.php">My Account</a></li>
        </ul>
        <h3>  </h3>
      </div>
      <div id="mainContent">
        <h4>Update Advert</h4>
        <!-- end #mainContent -->
      </div>
      <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
      <div id="main3">
        <div id="main">
          <fieldset>
            <legend>Please update advert details and confirm</legend>
            <form action="<?php echo $editFormAction; ?>" enctype="multipart/form-data" method="post" name="form4" id="form4">
              <input type="hidden" name="advert_id" value="<?php echo $row_Advert['advert_id']; ?>" />
              <p></p>
              <table width="650" align="center">
                <tr valign="baseline">
                  <td width="17" rowspan="15" valign="middle" nowrap="nowrap"><?php echo "<img src='upload/" .$row_Advert['PictureLocation']."' width='64' height='180'/>" ?></td>
                  <td width="133" align="right" nowrap="nowrap"> </td>
                  <td width="240" align="center" bgcolor="#CCCCCC"><strong>Offered</strong></td>
                  <td width="240" align="center" bgcolor="#CCCCCC"><strong>Wanted</strong></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Make:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Make" type="text" value="<?php echo $row_Advert['O_Make']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Make" type="text" value="<?php echo $row_Advert['W_Make']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Model:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Model" type="text" value="<?php echo $row_Advert['O_Model']; ?>" size="30" maxlength="30" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Model" type="text" value="<?php echo $row_Advert['W_Model']; ?>" size="30" maxlength="30" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Country:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Country" type="text" value="<?php echo $row_Advert['O_Country']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Country" type="text" value="<?php echo $row_Advert['W_Country']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Year:</strong></td>
                  <td bgcolor="#CCFFCC"><span id="sprytextfield1">
                  <input name="O_Year" type="text" value="<?php echo $row_Advert['O_Year']; ?>" size="4" maxlength="4" />
    <span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldMinValueMsg">The entered value is less than the minimum required.</span><span class="textfieldMaxValueMsg">The entered value is greater than the maximum allowed.</span></span></td>
                  <td bgcolor="#CCFFFF"><span id="sprytextfield2">
                  <input name="W_Year" type="text" value="<?php echo $row_Advert['W_Year']; ?>" size="4" maxlength="4" />
    <span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldMinValueMsg">The entered value is less than the minimum required.</span><span class="textfieldMaxValueMsg">The entered value is greater than the maximum allowed.</span></span></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Colour:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Colour" type="text" value="<?php echo $row_Advert['O_Colour']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Colour" type="text" value="<?php echo $row_Advert['W_Colour']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Body:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Body" type="text" value="<?php echo $row_Advert['O_Body']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Body" type="text" value="<?php echo $row_Advert['W_Body']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Neck:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Neck" type="text" value="<?php echo $row_Advert['O_Neck']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Neck" type="text" value="<?php echo $row_Advert['W_Neck']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Fingerboard:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Fingerboard" type="text" value="<?php echo $row_Advert['O_Fingerboard']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Fingerboard" type="text" value="<?php echo $row_Advert['W_Fingerboard']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Pickups:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Pickups" type="text" value="<?php echo $row_Advert['O_Pickups']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Pickups" type="text" value="<?php echo $row_Advert['W_Pickups']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Condition:</strong></td>
                  <td bgcolor="#CCFFCC"><label for="condition">
                    <select name="condition" size="1" id="condition">
                      <option selected="selected" value="" <?php if (!(strcmp("", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>---select---</option>
                      <option value="immaculate" <?php if (!(strcmp("immaculate", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>immaculate</option>
                      <option value="excellent" <?php if (!(strcmp("excellent", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>excellent</option>
                      <option value="good" <?php if (!(strcmp("good", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>good</option>
                      <option value="well used" <?php if (!(strcmp("well used", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>well used</option>
                      <option value="poor" <?php if (!(strcmp("poor", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>poor</option>
                  </select>
                  </label></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Value:</strong></td>
                  <td bgcolor="#CCFFCC"><span id="sprytextfield3">
                  <input name="value" type="text" value="<?php echo $row_Advert['value']; ?>" size="11" maxlength="11" />
    <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
                <tr valign="baseline">
                  <td align="right" valign="top" nowrap="nowrap"><strong>Comments:</strong></td>
                  <td bgcolor="#CCFFCC"><textarea name="Comments" cols="25" rows="3"><?php echo $row_Advert['Comments']; ?></textarea></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Picture location</strong></td>
                  <td bgcolor="#CCFFCC"><label for="checkopentoalloffers"></label>                <input type="file" name="PictureLocation" value="<?php echo $row_Advert['PictureLocation']; ?>" size="20" /></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
                <tr valign="baseline">
                  <td height="26" align="right" nowrap="nowrap"><strong>Open to all offers:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="checkopentoalloffers" type="checkbox" id="checkopentoalloffers" value="y" <?php if (!(strcmp($row_Advert['opentoalloffers'],"y"))) {echo "checked=\"checked\"";} ?> /></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
              </table>
              <p> </p>
              <div id="submitdiv">
                <input type="hidden" name="MM_update" value="form4" />
                <input name="submit button" type="submit" id="submit button" value="Update Advert" />
              </div>
              <div id="exitdiv">
                <label for="button15"></label>
                <input name="button" type="button" id="button15" onclick="MM_goToURL('parent','Member2.php');return document.MM_returnValue" value="Exit" />
                <label for="button16"></label>
              </div>
              <p> </p>
            </form>
          </fieldset>
          <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer", {validateOn:["blur"], minValue:1900, maxValue:2010, isRequired:false});
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer", {validateOn:["blur"], minValue:1900, maxValue:2010});
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "integer", {minValue:1900, maxValue:2010, validateOn:["blur"], isRequired:false});
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "currency", {validateOn:["blur"], isRequired:false});
          </script>
          <br class="clearfloat" />
      <!-- end #container -->
    </div></div></div>
    <script type="text/javascript">
    <!--
    var  = new Spry.Widget.MenuBar("", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($Advert);
    if (is_resource($Result1)) mysql_free_result($Result1);
    ?>

    Please note,
    Removing I investigated spry a little more, in the end I settled for removing spry altogether,
    Maybe it was because the text field in a $GET (for the default) AND a $PUT (for the update)

  • Problem with a C/C++ port into Java

    Hello,
    I have a problem with a small little C/C++ function which I have to port to Java.
    unsigned char CRC8;
    void CRC8_Init(void)
       CRC8 = 0xC7;
    unsigned char Create_CRC8(unsigned char InByte)
       unsigned char CRC8_Count;
       CRC8 ^= InByte;
       for(CRC8_Count=0;CRC8_Count<8;CRC8_Count++)
          if(CRC8&0x80)
             CRC8=(CRC8<<1)^0x1D;
          else
             CRC8<<=1;
       return CRC8;
    //************************************************************The problem is that there is no unsigned char in Java. If I use byte I have values from -127 to 127 but I need values from 0 - 255.
    Here is my code:
    byte crc8;
    public CRC8()
        this.crc8 = (byte)0xC7;
    public int CreateCRC8(byte inByte)
       this.crc8 ^= inByte;
       for(int crc8Count = 0; crc8Count<8; crc8Count++)
           if( (this.crc8 & 0x80) != 0){
              this.crc8 = (byte)((this.crc8 << 1) ^ 0x1D);
            else{      
                this.crc8<<=1;
        return this.crc8;
    }When I call the function:
       CRC8 c = new CRC8();
       c.CreateCRC8((byte)55);
       c.CreateCRC8((byte)47)
       byte result = c.CreateCRC8((byte)0); //estimated result should be 200 (result of the C/C++ function)
    Is someone out there who can give me a piece of code that works on the same way like the C/C++ function.
    Thanks in advance!*

    just make sure to use "byte" where you would use unsigned char; most bitwise operations work the same way. and if you need to convert it to an int to display it or something, do what was shown above
    this java code
    public class CRC8
    byte crc8;
    public CRC8()
        this.crc8 = (byte)0xC7;
    public byte CreateCRC8(byte inByte)
       this.crc8 ^= inByte;
       for(int crc8Count = 0; crc8Count<8; crc8Count++)
           if( (this.crc8 & 0x80) != 0){
              this.crc8 = (byte)((this.crc8 << 1) ^ 0x1D);
            else{
                this.crc8<<=1;
        return this.crc8;
    public static void main(String[]args)
       CRC8 c = new CRC8();
       c.CreateCRC8((byte)55);
       c.CreateCRC8((byte)47);
       byte result = c.CreateCRC8((byte)0);
       System.out.println(result & 0xff); // convert to int as shown above
    }produces the same result as this c++ code:
    #include <iostream>
    using namespace std;
    unsigned char CRC8;
    void CRC8_Init(void)
       CRC8 = 0xC7;
    unsigned char Create_CRC8(unsigned char InByte)
       unsigned char CRC8_Count;
       CRC8 ^= InByte;
       for(CRC8_Count=0;CRC8_Count<8;CRC8_Count++)
          if(CRC8&0x80)
             CRC8=(CRC8<<1)^0x1D;
          else
             CRC8<<=1;
       return CRC8;
    int main()
      CRC8_Init();
      Create_CRC8(55);
      Create_CRC8(47);
       unsigned char result = Create_CRC8(0);
       cout << (int)result << endl;
    }

  • Same content, two books each with its own page size -- best way to manage?

    Does anyone have any suggestions for producing two FrameMaker books that:
    Contain identical content that must also be periodically updated
    Must be delivered as two separate PDF books, each book having a different page size
    I'm familiar with migrating FrameMaker content from one page size to another: Create a new chapter template of the desired size, then import styles, etc., and content into that new template.
    But IF one must deliver the same content in two different books, AND each book using a different page size (U.S. Letter and B5), AND the content is periodically updated and maintained, THEN what's the best way to manage that same content, two different page-sizes delivery problem?
    PDFs are generated from FrameMaker 7 or 8 (we have both) via Adobe Distiller 9.
    Cheers & thanks for your help,
    Riley

    Use three directories - one for the master FM document, and one "build" directory for each of the formats you need. When it's time to build, copy all the files into the relevant build directory and do your stylesheet applying, book regenerating, and printing in the build directory.
    If you decide to handle it in FrameMaker (rather than Acrobat), then use two stylesheets - one with all the formats you need and letter-sized pages, and one with no formats and with B5 sized pages. This way you only need to manage one stylesheet for most formatting controls (except page layouts), and you only need to import the page layouts when you want to build a document or "toggle" it between different page sizes. How similar these two stylesheets are to each other (on the master pages) depends on how much you think you can get away with:
    If the page sizes are similar, use different pages sizes but identical text frames on the master pages if you can. This would give you identical pagination although the margins would be different. You might be able to find an optimum "compromise" text frame size that fits both page sizes reasonably well.
    If you can't use the same text frame sizes on the master pages, then of course your pagination is going to change, but at least try to use text frames that are the same WIDTH. This avoids needing to manually adjust side-head areas, pictures, and table widths every time you change the page size.

  • HELP!!  I am having BIG PROBLEMS getting the Custom Page Sizes to work!!

    I am having a MAJOR challenge working with the Custom Page Size feature in Pages '09. My mom is working on a primer music book for publication, where the page size (for the printer) MUST BE 9" X 12"!! For some reason even though I have set the custom page size to 9" x 12", The document does not appear to have the proper proportions, (i.e. the ration of the width to height IS NOT EQUAL TO THAT OF A 9" X 12" DOCUMENT!!)
    HELP!! PLEASE!!
    Also, for some reason my Vertical Ruler has COMPLETELY DISAPPEARED!! My Horizontal Ruler (on top) is still there but there is no sign of the vertical one which is CRITICAL for aligning the of the content for publication!!
    I took an annotated screenshot of what the document that is +*SUPPOSEDLY 9" x 12".*+ But there is +*NO WAY THAT IT IS ACTUALLY 9"12!!*+
    I have also taken some screenshots of a few other Inspector Panels and other things that might help SOMEBODY to figure out what the problem is!
    _Link Title_ _Flickr Link_
    Front Cover Mock-Up http://www.flickr.com/photos/kmamusic/4085015686/
    Metrics Inspector Panel http://www.flickr.com/photos/kmamusic/4084236829/
    Layout Inspector Panel http://www.flickr.com/photos/kmamusic/4084235497/
    Page Setup Dialog Box http://www.flickr.com/photos/kmamusic/4084990178/
    Document Inspector Panel http://www.flickr.com/photos/kmamusic/4084231449/
    Annotated 9” x 12” Doc. http://www.flickr.com/photos/kmamusic/4084092849/
    I do hope that somebody can answer WHY I am having these problems

    Hi kmamusic
    Welcome to the forum.
    To show your vertical ruler:
    +Menu > Pages > Preferences > Rulers > check Enable vertical ruler in word processing documents+
    You are right the page does look slightly too high.
    The one thing you did not give us was a screen snap of the *Custom Page* you set up in *Page Setup…*
    This is what would dictate the actual page size.
    Peter

  • Problems with the new Pages.

    Hi everyone.
    I wonder if i am the only one experiencing a little problem with the new Pages?
    My problem is that every other time i want to correct the font lets say trying to underline or make the font fatter using the hotkeys "Command+B" or "Command+U" or "Command+I", or even changing it manually in "formats" my font gets stuck, and i have to copy-paste text from another pages-file into my old one to get et back to normal.
    Anyone else tried this?
    Martin.

    VladRO wrote:
    These are the problems that I am encountering for the moment! If there will come up some new once, I will write them here!
    Instead of starting a new list, go to
    https://discussions.apple.com/thread/5468056?tstart=0

  • Problem with Frameset and page session

    All,
    I am having a problem with Framesets and page session attributes. I
    have a client who's application uses a three frame frameset. They
    have a requirement on several pages that when a button is pushed two
    different pages load into the right and left frames. The way they
    are accomplishing this is that on the pages were this is required,
    they are adding target="_top" to the form declaration in their JSP.
    Then they store the page names they want to display in session,
    forward the request to the frameset, the frameset then determines
    which pages to display based on the session variables. This works
    exactly how they want it to.
    Here is our problem. We need to store some information in page
    session attributes. We have tried to get a handle to the desired
    view bean and call the setPageSessionAttribute method. However,
    since we are forwarding to the frame and the frame handles displaying
    the desired JSP, that view bean we had the handle to is not the one
    that is created to hand the display of the JSP.
    The next thing I tried was to use the request object. In the
    handleBtnRequest method, I set an attribute in the request object. I
    then query the request object in the beginDisplay event of the view
    bean. When the frame is reset the request object does not contain
    the attribute that I have set. I'm confused by this because I
    thought the request object would be available to me throughout the
    life of the request.
    Given the above information, does anyone have any suggestions? Also,
    am I going about this in the wrong manner.
    The client had been storing this information in user session, which
    seemed to work. However, since the data being stored dealt
    specifically with data for the requested page, we felt that storing
    it as page session was more appropriate.
    Thanks,

    The script on your page web page has some obvious bugs.. Best
    fix those
    first before looking to blame Flash.
    Jeckyl

  • Problem with flash on IE11 after using adobe cleaner

    Problem with flash on IE11 after using adobe cleaner to remove a trial version of photoshop because there was not any entry on add/remove applications in windows 8.1
    Its to frustrating to reinstall everything. I tried everything from your support page with no luck…

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/

  • Problem with display of pages in IE

    I'll keep this short and simple, I'm not after criticism of my work but if it is a mess then I understand, I've re-coded a website designed by a friend who has joined the army & is currently serving so I cannot get in touch with him for help, I'm a novice website designer but I'm stumped as to why my pages are behaving the way they are
    I've made a website for a friend's pub and it all looked brilliant in DreamWeaver CS5's Design View so I went ahead and used ftp program FileZilla to send it live on my domain and basically it shifted my pictures and it displays differently in IE to what it does in Chrome e.g. My "Find Us" page has a large white bar at the bottom in IE which shouldn't be there and I can't get rid of it, but it doesn't show in chrome?
    Any help or code I may be able to implement would be greatly appreciated, thanks Freecey.
    Edit: Forgot to add the link to my site - www.thelightdragoon.co.uk
    Also I am aware of the problems with the Home Page & the Menu Page but I am yet to attempt to fix those yet.

    You still have a problem on that page.
    <head>
    <meta name="generator" content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org" /><object type="{0C55C096-0F1D-4F28-AAA2-85EF591126E7}" id="cosymantecbfw" class="c1"></object>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    Note that you STILL have an <object> tag within the head region.  That's invalid.
    Also, you are using absolute positioning to place elements within your header region - that's definitely suboptimal and unnecessary since it precludes centering the page in various width viewports.  However, if you make the following changes you can muddle by -
    1.  Change the CSS for #outerShadow to set the left/right margins to "auto".  Make it position:relative.
    2.  Change the left values for the absolutely positioned elements to whatever you need for them to be correctly located within #outerShadow.
    3.  Twiddle the remaining out of place element margins to locate them correctly within #outerShadow.
    That should do it.  But the real way to build this page is without using absolute positioning at all.  It's not necessary and will always make your maintenance more complicated as long as you have it.

Maybe you are looking for

  • Display all of the following properties for Get-ADDomain

    How do you display all of the following properties: Get-ADDomain ???,cn=mysite,cn=com; Property Syntax R/RW lDAPDisplayName AllowedDNSSuffixes ADCollection RW msDS-AllowedDNSSuffixes ChildDomains ADCollection R dnsRoot of crossRef objects where trust

  • Windows 8 possible to install on HP Pavilion h8-1030nl

    Hi, I would like to know whether it is possible to install windows 8(.1) on my desktop computer HP Pavilion h8-1030nl ? thanks for answers

  • Multi-part input message problem in webservice Proxy generator

    While generating a java proxy for an Oracle Access Manager Identity XML operation I get the following. Generating proxy WARNING: ignoring operation "OblixIDXML_um_modifyUser": input message with multiparts is not WS-I compliant and is not currently s

  • Dynamic menu dropdown for android tablet

    Hi i've created a dropdown menu, it works on hover on desktop view and on a ipad it works also perfect. with the javascript. specialisterren.businesscatalyst.com can someone give me some advise how i can make it work on a android tablet of mobile. Gr

  • Does a war file explode in Weblogic ?

    I deployed a war file in weblogic, and I am not able to find one that is exploded, I worked with Tomcat previously and when I deploy a war file, I can see the exploded war file in the same directory..please give links, reference...if you can...I will