Printing on Top left Corner of a page

Hi,
I have written a java program to print , i am not able to print on the top left corner(Extreme),
even though i specify my X and Y co-ordinates are 0 ,0 . please help me in printing on the top left corner .
find below my java program.
     Author
     Manju
     PrinterJob prnJob = PrinterJob.getPrinterJob ();
PrintDetails m_pr = new PrintDetails();
// Create a new book to add pages to
Book book = new Book ();
PageFormat format = new PageFormat();
Paper paper=new Paper();
// Set the imagable area to 300.0 and 435.0
paper.setImageableArea(0.0,0.0,300.0,435.0);
// Set the paper size to 300 width and 435 width.
paper.setSize(300,435);
format.setPaper(paper);
book.append (new Document (), format);
// Tell the prnJob to use the Book as the Pageable object
prnJob.setPageable (book);
* Get the value from the properties file to print to
* the appropriate printer (Preferred Printer)
* Property names are
* 1. PRINTER_1
* 2. PRINTER_2
* Example :-
* PRINTER_1=Microsoft Office Document Image Writer
* PRINTER_2=\\\\igtewf39\\TVS MSP 345/Champion/XL Classic
* PRINTER_2 is having the proper value while PRINTER_1 is not.
* Printer name should have the server name Pre-fixed to it.
String prefferedPrinter = null;
if(args.length > 0) {
System.out.println("args0" + args[0]);
if(args[0].equals("1")) {
prefferedPrinter = m_pr.getProperty("PRINTER_1");
else {
prefferedPrinter = m_pr.getProperty("PRINTER_2");
* Get the printer from the list.
* Print the contents to the printer
* There might be lot of Printers configured in the system
* We have to get the contents printed on our preferred Printer.
PrintService[] array = PrinterJob.getPrinterJob().lookupPrintServices();
int device= -1;
for (int i=0; i<array.length;i++)
if(prefferedPrinter.equalsIgnoreCase(array.getName())) device=i;
try {
prnJob.setPrintService(prnJob.lookupPrintServices()[device]);
// The number of copies can be changed to 2 or three . Default will be one.
prnJob.setCopies(1);
prnJob.print();
     } catch (Exception PrintException) {
     PrintException.printStackTrace();
Regards
Manju

Most printers will not print to the very edge of the paper if the printer has been told what size paper is loaded and that is, in fact, what is loaded. Check the printer printing limits.

Similar Messages

  • C3180 is printing 2345x in top left corner of blank pages every time i print

    Every time I print anything from my Mac Book Pro (running Mavericks 10.9), my C3180 spits out a page with 2345x printed in the top left corner of an otherwise blank page.  Wasting my paper and my ink.  
    Anyone have any suggestions?
    This question was solved.
    View Solution.

    Thanks all for the information.  We are taking a look at what this might be.    Is it printing this out on a single sheet after the desired print, or on the same page or a combination?  Any additional details will greatly help trying to track this issue down to root cause.

  • How do I get the orange firefox button to show up on the top left corner of my page?

    So, I've installed, and reinstalled the new Firefox 4. It seems like only half the features have shown up. For example, I don't have the orange firefox button in the top left corner. I also don't have the button for bookmarks. On every other machine that I've installed firefox 4 on has not had issues like this. I don't know why I'm having issues on my laptop. If there's a way to fix it, I would appreciate it. I don't mind how it is right now, but I do like the cleaner look and the orange firefox button, instead of the buttons that show up now that are labeled: "File, Edit, View, History, Bookmarks, etc."

    * You see the orange (on Linux gray) Firefox button if the Menu Bar is hidden (View > Toolbars > Customize or right-click a toolbar).
    * If you need to access the hidden Menu bar then press F10 or hold down the Alt key to make the Menu Bar appear temporarily.

  • Reader only printing the top-left quarter of the page.

    Title. Not a problem with the printer, other unrelated reader files are printing fine. Tried rebooting computer. Tried saving file as a different name, and also recreating the file, (an export from GIMP).
    Thanks,

    In the Print dialog, make sure you select the Fit option under Page Sizing & Handling.

  • Spry submenu displays in top left corner of page in IE

    I am new and hope someone can help solve the problem with the Spry dropdown submenu.  It's displaying in the top left corner of the page in IE instead of under the menu items, but is fine in Firefox.  I have attached an image of the problem and web address.
    http://americanhomesandgardens.com 
    Thanks

    The markup is all wrong. Have a look at the first few lines of the widget markup and compare that to what you have.
    <ul id="ipe" class="MenuBarHorizontal">
      <li><a href="index.html">Magazine Cover </a></li>
      <li><a href="History.html" class="MenuBarItemSubmenu">Company Information</a>
        <ul>
          <li><a href="History.html">Company History</a></li>
          <li><a href="Privacy Policy.html">Privacy Policy</a></li>
          <li><a href="Website Security.html">Website Security</a></li>
          <li><a href="Financial Transactions.html">Financial Transactions</a></li>
          <li><a href="Terms of Service.html">Terms of Service</a></li>
        </ul>
      </li>
    Gramps

  • I reset my toolbars and now no longer see the "page back" or "page forward" icons on the top left corner of the screen

    just loaded the new version of firefox. i went into "library" and told the computer to forget the mp3tube toolbar and it got rid of all the toolbars and also shows no search engine in new tabs, and has no page back or page forward arrows in top left corner of screen. how do i at least get the page back and forward function enabled?

    Make sure that you do not run Firefox in Full Screen mode with all toolbars hidden.
    * Press F11 to toggle full screen mode (Firefox/File > Full Screen)
    If the menu bar is hidden then press the F10 key or hold down the Alt key, that should make the menu bar appear.
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout" (Linux, Windows)
    * If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
    * If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
    See also:
    * http://kb.mozillazine.org/Toolbar_customization
    * https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Since about 2 weeks ago for no apparent reason, the internet on my iPad suddenly stopped working (when I open Safari, it says: "Safari cannot open the page because it is not connected to the Internet"), even though the Wifi icon in the top left corner sti

    hi

    Since about 2 weeks ago for no apparent reason, the internet on my iPad suddenly stopped working (when I open Safari, it says: "Safari cannot open the page because it is not connected to the Internet"), even though the Wifi icon in the top left corner still shows full signal. However, I noticed when I went into Wifi settings (Settings>Wifi) that there is no checkmark next to my network name (only the spinning circle icon, as if it's trying to process something). This only happens at home (I can browse the internet while connected to  Wifi at university). My other Apple devices (MacBook Pro and iPhone 4S) work perfectly fine at home.
    I've tried resetting my router, restarting my iPad, resetting Network Settings on my iPad, and tried following Hynes' instructions on this thread:https://discussions.apple.com/thread/2453187?start=15&tstart=0, but nothing has worked so far (although I have to admit that I found the instructions on that thread somewhat confusing, so there is a chance that I accidentally did not follow them properly).
    Could someone please help? It'd be VERY much appreciated.

  • Change SSRS "Displayed Page Title" to other than "Home - Report Manager" in top left corner of Browser

    Hi,
    I'm trying to figure how to change the actual page title that is displayed in the top left corner of the Browser
    "Home - Report Manager" to something more meaningful to my company, so that when a user bookmark the page it will pickup the title from there.
    According to the default Link:  /Reports/Pages/Folder.aspx?ViewMode=List    I opened up
    Folder.aspx, and all I see is a reference to Folder.aspx.cs,  I could not locate this file and I'm not sure if there is where I can change the title.  
    I can change the Site Title by clicking on the "Site Setting" link but this does not allow the change of the Page Title that is on the top left corner of the browser.
    Thanks for your help in advance.

    Hi Chillette,
    In Reporting Services 2008 R2 or later, if we add a bookmark for a folder or report on report manager, the title of the site will display as folder name-Report Manger or report name-Report Manager. In Reporting Services 2008 or earlier, it will display as
    Report-Manager only. We can rename the title of the site manually after we add the bookmark.
    So in your scenario, you can update the report server to SQL Server Reporting Services 2008 R2 or rename the title of the site manually after we add the bookmark.
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    Charlie Liao
    TechNet Community Support

  • HT1529 Can't find about this mac it isn't at the top left corner

    I want to get my serial number about this mac isn't at top left corner. I need help as The ipaq can't find my printer but it will when print appears at the bottom of the pad on hp help pages.

    Sorry, but your post is rather confusing. Are you asking about a Mac, an iPad, or an HP iPaq?

  • After I have reset my network settings to clear a previous problem, the top left corner just stays at 'searching' and doesn't display my service carriers name as usual.

    After doing the network reset on my iphone 4, the top left corner of the screen which usually displays my carriers name just keeps saying 'searching'. I have tried looking elsewhere at this site for a solution to my problems but I'm still coming up empty.
    Can someone help me PLEASE!

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • I have these black boxes surrounding things, e.g., there is a black box around the red "close" button on the upper left corner of this page.  There is also an oblong black box

    Hi - I'm not only having trouble waking up my MBP from sleep and having to restart repeatedly which is a pain in itself, but now when it restarted, I have these black boxes surrounding things, e.g., there is a black box around the red "close" button on the upper left corner of this page.  There is also an oblong resizable black box sitting on top of anything.  The content changes depending on the actions I take.  Right now it says, "You are currently on a close button.  To click this button, which closes the current window, press Control-Option-Space."  Right now I'm open in Firefox, but it doesn't matter if only Finder is open, it's still there.  I've tried closing all my applications and restarting and I also reset the PRAM.  It won't go away.  It's probably something simple, but I don't know how to get rid of it.  Any suggestions are welcome.
    Thanks,
    Janet

    Thanks so much.  I saw this on "desktop strangeness" immediately after I posted and tried to retract my question.  It worked perfectly.  I'm not sure how VoiceOver got turned on unless something happened when I was trying to wake up the computer.  I open the lid and it flashes whatever is open and then the screen goes black and I can't wake it up.  Still looking for the resolution to this.

  • I have a small window quickly popping up and disappearing in the top left corner of my screen?

    I apologize in advance if this has been covered elsewhere, but I have been searching and haven't found anything yet. And thank you for any help you can offer, it is greatly appreciated.
    Every 15 seconds or so a small, empty window will pop up in the top left corner of my screen and then vanish instantly. It opens and closes in a blink, so quickly that I am not able to interact with the window in any way. However, it shows up momentarily as a firefox tab on my bottom panel, so I know it is a firefox problem.
    It is only an issue because whenever it pops up I am exited from fullscreen if I am watching a video online, and anything that I am typing while the window pops up will be ignored.
    I am currently running Linux Mint Olivia 15 Cinnamon. However, I had the exact same problem when I was running Windows 8. In both cases, firefox has been installed, uninstalled, and reinstalled, which does not fix anything. I have updated firefox since it started happening, which also did not fix anything.
    It was very tricky, but I did manage to get a screenshot of the box while it was open.
    The same question was asked here, but never resolved: https://support.mozilla.org/en-US/questions/953373

    Does this only happen on specific pages?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can try to disable notifications as a test (you may want to reverse this).
    You can try to set the dom.webnotifications.enabled pref to false on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config

  • I've lost the orange firefox tab with the arrow, that was in the top left corner: how do I get it back?

    I've lost the orange firefox tab with the arrow, that was in the top left corner: how do I get it back?

    In current Firefox releases (29 and later), that have have the Australis user interface, the orange Firefox menu button has been replaced by the three-bar Firefox Menu button at the far right end of the Navigation Toolbar and this button is always visible, whether you have the menu bar visible or hidden<br>A consequence of this location is that you no longer can hide the Navigation Toolbar
    *There is a star like button to the right end of the search bar on the Navigation Toolbar to bookmark the current web page and a "Show your bookmarks" button next to it to open the Bookmarks in a drop down menu.<br>You can find "Show All Bookmarks" to open the Bookmarks Manager (Library) at the bottom of this drop-down list
    *It is still possible to have the menu bar visible via the right-click context menu on the toolbars to have menus like the Bookmarks menu
    *<br>*If you bookmark a page then "Bookmark This Page" in the Bookmarks menu changes to "Edit This Bookmark"
    See also:
    *https://support.mozilla.org/kb/how-to-make-new-firefox-look-like-old-firefox
    *https://support.mozilla.org/kb/common-questions-after-updating-to-new-firefox
    *https://support.mozilla.org/kb/learn-more-about-the-design-of-new-firefox
    I'm locking this thread. If you still have questions then please create a new thread.

  • I have somehow added a link to my pictures, so each one has a " ? " in the top left corner. How do I

    I have somehow added a link to my pictures, so each one has a " ? " in the top left corner. How do I remove this link ?

    Hi,
    Thanks for your help. I will try that approach.
    Regards
    Colin
    Date: Tue, 22 Oct 2013 09:28:06 -0700
    From: [email protected]
    To: [email protected]
    Subject: I have somehow added a link to my pictures, so each one has a " ? " in the top left corner. How do I
        Re: I have somehow added a link to my pictures, so each one has a " ? " in the top left corner. How do I
        created by dj_paige in Photoshop Elements - View the full discussion
    It's not a link, its an icon that indicates the photo cannot be found in the location where PSE expects it. This happens because you either renamed, moved or deleted the photos outside of PSE. To fix the problem, use File->Reconnect (you will have to find the actual file in one of your folders), and in the future, no more moving, renaming or deleting photos outside of PSE; if you MUST rename or move photos, do so from within PSE.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5779318#5779318
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5779318#5779318
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5779318#5779318. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Photoshop Elements at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Red border on top left corner

    My PB always has this red border on the top left corner of every app, and page I view.  Is it broken?
    Thanks!

    no, I believe you have a notification:
    http://docs.blackberry.com/en/smartphone_users/deliverables/27018/View_notifications_1360776_11.jsp
    swipe in from the top-left frame onto the screen
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

Maybe you are looking for

  • Runtime Error during ODS Activation: UNCAUGHT_EXCEPTION, Exception - CX_PARAMETER_INVALID_RANGE

    Hi, I was trying to activate an ODS while loading the data from a FlatFile using SAP BW 7.4. The Data was loaded completely in correct format in the PSA and also into the New Data and Change log tables in the ODS. But when trying to activate the ODS,

  • Using PL/SQL to send alert email error

    Hi All , This is from one of my earlier posting : DECLARE l_mailhost VARCHAR2(64) := 'mail.mycompany.com'; l_from VARCHAR2(64) := '[email protected]'; l_to VARCHAR2(64) := '[email protected]'; l_mail_conn UTL_SMTP.connection; BEGIN l_mail_conn := UTL

  • Are there any plans to add rowing machine data to health app

    The health app is definitely good if your a runner or cyclist, however it doesn't seem to cover logging gym workout data. Does Apple have any plans to add metrics to the health app for these. In particular I use a rowing machine and it would be great

  • How to send reply to the sender  of a multicast messg

    Hii all, I have a problem in sending reply to the sender of a multicast message. My problem is that, a process sends a request to all the peer processes in a multicast group and the receivers have to send a reply to this request and the reply should

  • Software update error?? help please it's driing me med!!!

    hi! I've finally got my mac connected to the internet using airport and everything seems to be working ok. BUT I tried the system update feature but i keep getting an error message that reads: "A networking error has occurred: timed out (-1001). Make