Get.print java issue

I created a PDF form that contained a button with the action of Run Java Script. the purpose was to preselect a deginated printer for the end-user.  All worked well until Adobe Reader X.  In Reader X, the printer is ignored and selects the users default printer.  Below is the script.  Has anyone had this issue or discovered a solution?
var pp = this.getPrintParams();
pp.printerName ="\\\\Print1\\wi-am-ptr2";
this.print({bUI:false,bSilent:false,bShrinkToFit:true,nStart:2,nEnd:2,printParams:pp});

Hi Modify ur code like this
OAViewObject getrowcountVO = (OAViewObject) am.findViewObject("TrackingVO");
getrowcountVO.last();
int iRowCount = getrowcountVO.getFetchedRowCount();
if (giRowCount >= 500)
OAException message1 = new OAException("Row Count Exceeds 500."+" "+getrowcountVO.getRowCount(),OAException.WARNING);
pageContext.putDialogMessage(message1);
else
OAException message4 = new OAException("Row Count does not Exceeds 500."+" "+getrowcountVO.getRowCount(),OAException.WARNING);
pageContext.putDialogMessage(message4);
Thanks
Pratap

Similar Messages

  • How to get printer IPAddress using java code

    Hi all,
    Can some one suggest in java
    1) how to get printer IPaddress
    2) send a printer job to a particular printer either by using printer name or by printer IPaddress ?

    Hi all,
    Can some one suggest in java
    1) how to get printer IPaddress
    2) send a printer job to a particular printer either by using printer name or by printer IPaddress ?

  • Blocked trying to get lock: java.io.PrintStream

    hello,everybody
    i have a problem with ejb deployed in weblogic 9.2
    sometimes it throws exceptions as follows:
    Blocked trying to get lock: java.io.PrintStream
    is this io deadlock?
    which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
    Thread-169 "[STUCK] ExecuteThread: '84' for queue: 'weblogic.kernel.Default (self-tuning)'" <alive, in native, suspended, blocked, priority=1, DAEMON> {
        -- Blocked trying to get lock: java.io.PrintStream@23f1a60[fat lock]
        org.hibernate.exception.NestableDelegate.printStackTrace(NestableDelegate.java:303)
        org.hibernate.exception.NestableDelegate.printStackTrace(NestableDelegate.java:292)
        org.hibernate.exception.NestableRuntimeException.printStackTrace(NestableRuntimeException.java:187)
        com.test.bean.testBusinessBean.getInforByid(testBusinessBean.java:1628)
        com.test.bean.testBusinessBean_cdq3cw_EOImpl.getInforByid(testBusinessBean_cdq3cw_EOImpl.java:2422)
        com.test.bean.testBusinessBean_cdq3cw_EOImpl_WLSkel.invoke(Unknown Source)
        weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:526)
        weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:210)
        weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:438)
        weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:350)
        weblogic.security.service.SecurityManager.runAs(SecurityManager.java:143)
        weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:386)
        weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:57)
        weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:964)
        weblogic.work.ExecuteThread.execute(ExecuteThread.java:206)
        weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    }thanks

    I'm getting the same problem. What happens on my server is that sometimes when a thread tries to print a stack trace, it gets stuck at "FileOutputStream.writeBytes". All other threads will then stop at "printStackTrace" when they try to synchronize on the System.err, like yours. I have no idea why this is happening. However, I don't use weblogic or ejb, so it seems to be a more basic issue. As a workaround, I'm considering to set a custom System.err that writes all its output to a queue which then in turn gets written to the real System.err by a separate thread. That way, the worst that can happen is that that separate thread gets stuck.
    This is quite annoying but I'm not sure if we have enough information yet to file a bug. I can't reproduce it yet. My server sometimes runs for weeks without this problem happening...
    If anyone has updates on this, that would be much appreciated.
    My system:
    Java: Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
    OS: Debian 4.0
    Processor: AMD Athlon 64 X2 5600+ Dual Core

  • Text overflown in the first page is not getting printed in the next page

    Hi Experts,
    I have a text field, where the users can enter the comments. In this text field if the user enters more than a page, a scroll bar appears in the print preview where the users can view the complete text what they have entered, but while printing the text which exceeds more than a page is not getting printed in the next page.
    I have set the subform properties as "Flowed" and the check box "Allow Page Break within content" is also been enabled, but still the extra contents is not getting printed in the next page.
    Please help me regarding this.
    Thanks & Regards,
    Karthik MD

    Hi,
    This issue is in ADOBE, I think there is no concept of Window in ADOBE,
    The text box is placed inside a Subform.

  • Barcode is not getting printed in the SmartForm

    Hi All,
    I am trying to print BARCODE in a SMARTFORM but it is not getting printed.
    I have created a barcode ZTest_Barcode from the transaction SE73. Then I have created a Character Format C1 with this barcode ZTest_Barcode.
    In the SmartForm I have applied this character format like this <C1>&WA_VBAK-VBELN&</C1>.
    But in the preview of this SmartForm barcode is not getting printed while this field is printing like <C1>220<C1>.
    I have also tried with some SAP barcodes like BC_CD39, C128A_01, etc. But the result is same.
    Please help me to resolve this issue.
    Regards,
    Avaneet

    hi avaneet,
    check this site for barcode.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    it may help you.
    thanks
    Sachin

  • I continually get a Java error. I've uninstalled and reinstalled firefox and nothing has helped. I've updated flash and Java.

    I have used Firefox as my default browser for many years. I've recently started getting a Java error message. It pops up continually. I have updated flash and java. I have uninstalled and re-installed Firefox and nothing has helped. I have had to start using Chrome instead of Firefox which I don't care for but I don't have the java error with Chrome. How do I fix this problem? The error reads as follows:
    Java Script Application
    Error: syntax error

    Your '''JavaScript''' error has nothing to do with the Java plugin . It is likely caused by an added extension (the earlier forum threads [/questions/944619] and [/questions/943088] mention disabling or updating the Social Fixer extension will resolve the problem).
    You can read this article for help troubleshooting your extensions: [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • Invoice is not getting printed for particular 3 customers

    Hi,
    When user is printing the Invoices, only for specific 3 customers it is it not getting printed automatically, but the output is shows success with green. When they re process it manually, it is printing successfully for the same printer.
    1. Printer setup is checked it is correct
    2. There are two outputs one is External send (E-mail) and one is Printout.
    3. The problem is with only the Printout, where as the external send (E-mail) is sent successfully.
    Help me out in this issue...
    Thanks
    BP

    Hi
    First of all Welcome to SCN Forum
    Please check wheather any subroutine has been assigned to the output type access sequence.If the problem is with printout only then check the Logical destination that has been maintained in VV32 for those 3 customers.In VV32 for those 3 customers check wheather Release Immediately has been checked or not. Before reprocessing it go to VF02 and check on determine analysis
    Regards
    Srinath

  • When I click on firefox I get a java script error that says "TypeError: Components.classes[TvtPwmComponent_CID] is undefined", what does that mean?

    Whenever I click on firefox, or when a pop-up occurs, I get a java script error that says, "TypeError: Components.classes[TvtPwmComponent_CID] is undefined". I don't know why. It first occurred while I was on ESPN while trying to watch college games live.

    This issue can be caused by an extension that isn't working properly.
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Can't scan from Lexmark multifunction printer - firewall issue?

    Hi there!
    I got a Lexmark printer/scanner combo which used to work fine on my arch install. However, its mobo died, so now I'm back at another install which refuses to scan. Scanning is done through the browser via a java applet residing on the printer's webserver. The applet does start (so it's not a java issue), but refuses to receive data from the scanner. Within the printer's web interface, it reads
    If using Windows XP, the Windows XP personal firewall must be disabled before using Scan to PC profiles.
    , so I'm assuming it might be a firewall issue. Lexmark's website provides the following advice:
    The following two command lines will open the port 5353 for incoming and outgoing connections:
    iptables -I INPUT -p udp -m udp --sport 5353 -j ACCEPT
    iptables -I OUTPUT -p udp -m udp --dport 5353 -j ACCEPT
    NOTE: These steps will work on most distributions configured with IPTABLES. There is no common command to make these rules persistent.
    As I don't know anything about IP tables, I've simply copied these commands (as root, obviously). Still, I can't scan.
    So, my questions are:
    1. Has anybody else ever come across an issue like this?
    2. I don't even know for sure, whether this is a firewall issue - What iptabled magic would I need to temporarily disable the firewall to check?
    3. I tried checking my rules by "iptables -L". How can I tell "iptables -L" to specify the ports it is working on (as I did in the commands copied from lexmark's website)?
    Best wishes,
    Rufus

    Hi Bob
    I believe so.  We put the install disc into this mac back when we bought it to set up the printer.  I'm assuming the scanning drivers were there as well since it's a multifunctional printer/scanner/fax wireless printer.
    We've tried it both ways.  If I press the button scan on the printer, it reads can't find computer (or something like that).  When we go thru the HP icon on my computer screen and choose scan to computer, it does nothing.
    We don't scan that often.  So the few times when we ran into this problem, we just did something else (like take a pic from our iPhone and email the pic...kinda stupid but did the trick.
    But I want to have the function of the scanner available.  So that's why I'm here asking...thought others had this issue and had a solution.

  • Hp Color Laser Jet 5550dn Print Quality Issues

    Good Afternoon,
    I have a Hp Color Laser Jet 5550dn that has some print quality issue.  I've attached a black and white scan, but the color is a light blue to blue that form the blotches.  On the back of the page there are blue and pink streaks.  
    I can print more sample pages or print them in color, but anyone have any idea what could be going on here?

    We are encountering a similar problem. The streaking is coming fromt the Cyan cartridge and has continued for over a year now, despite numerous cartridge changes and replacing the transfrer case. It is progressively getting worse and I have yet to find a solution to this problem online. Any help or guidance would be appreciated.

  • Invoice is getting printed instead of being sent in email

    Hi Experts,
    I have an issue where there is a list of customers for which invoice should be sent in an email.
    It should not get printed out.
    I've maintained customer specific condition records for this output type (ZINV) and have kept transmission medium as 5 (External send). But still in invoice, transmission medium is picked as 1 (Print output). This billing type has default value as 1 (Print output). But for these customers, system should have picked up 5 not 1.
    I've checked config. I dont see any problem as per my understanding.
    Would you please advice if I am missing something?
    -Chetan
    Edited by: Chetan Barokar on May 6, 2010 8:25 PM

    Hi,
    Hope the Form and print program are assigned for email comm for the output type in NACE trranscation.
    In the condition records(VV33), the communication strategy must be set to 1(Email only) in the communication tab. Also check the access sequence of condition records and make sure that it is not selecting the wrong sequence. Also please check the output determination procedure.
    If the above setup exist, the please debug the print program and check whether the device value passed to OPEN_FORM is MAIL and also check whether the sender and recipient values are passed.

  • PO Print out Issue place

    Hi..
    My client raises the PO at Jaipur for their plant which is at Mumbai...All the goods will be delivered at mumbai..
    but in the print out of PO..my client wants to print the address of the PO issued place..like in this case..PO issued place is jaipur and delivery plant is mumbai..
    AS i have seen there is no such field in the header of PO...only we can pick the delivery address..?
    How can we get the  PO issue place...?
    Thankx in advance
    Thanks

    In general, whenever you raise a PO with plant and sloc, by default plant address is adopted as delivery address in item details tab. But for you scenario, since your delivery address varies and which you are not sure which plant address is used as delivery address. so I presume that whenever user raise PO, user is going to input manully the PO delivery address by deleting the Plant address (Plant from which PO is raised).
    To cater the requirement of address for plant in which PO is raised, as suggested either maintain or use the existing plant address table to club with user exit and use to populate the address in text field. Make sure that text field is printed in your PO printout form.
    Hope this clear you...do lemme know if you need clarification.
    BR,
    Krishna

  • Just updated my MacBook Pro to 10.6.8 and now my Filemaker 11 databases (.fp7) do not view properly on my desktop.  Is this a java issue?

    Hi,
    Wondering if anyone knows what's going on with my Filemaker Database that will not view properly on my desktop after upgrading from 10.5 to 10.6.8 on
    my MacBook Pro.   Is this a Java issue?  The data is all there but all I see is blank boxes when I open or click on a specific area in the database.
    My Java version is SE 6 1.6.0.37-bo6-434.

    Let me understand:
    - you have purchased named canon, which is conencted to your PC running windows xp
    - downloaded driver for win xp, and canon works fine
    - canon is connected to that PC via USB
    - that Canon is also activated as network printer, by allowing print sharing in windows; how did you set that option?
    - now, you are in Mac OS x 10.6.8, downloaded Canon driver for Mac OS X, installed it, detected printer on the network, printer was installed; was it detected as attached to that PC running win XP? or not?
    or you set canon by being connected to your mac directly via USB?
    Now, there are some questions you should answer as some details are missing, and your initial text is not clear. Can you print if Canon is connected directly to your mac? did you try that? if not, do it before answering.

  • Only one line is getting printed in Table in Smartforms (ECC 6.0)

    Hello Sir,
    I am new in ABAP and doing Smartforms (ECC 6.0) on project from customer side.
    I have to deliver the object in time and it is already late, please help me.
    This is my question:
    Object :  Stock Transport Order.
    =======================
    I have created Table in main window after Program Line Node.
    >Main Window
    >>Code2
    >>Table1
    >>>Header
    >>>>Row1
    >>>>>Cell1 to Cell10
    >>>Main Area
    >>>>Row2
    >>>>>Cell1 to Cell10
    >>>Footer
    >>>>Row3
    >>>>>Cell1 to Cell10
    I have mentioned internal tabel as well work area table in "DATA" tab in table Node.
    In Row1 I have created Text Node in every cell having Column Heading.
    In Row2 I have created Text Node in every cell having variable.
    In Row3 all cells are blank.
    On output only one line is getting printed
    What could be the reason.
    =====================================================================
    This is Code1 (is in the beginning of the form in window1)
    ==========
    *& Selection of Purchasing Document No,Plant,Short Text,Quantity,Material No,
    *& Gross order value in PO currency
    select single ebeln werks txz01 menge matnr brtwr
    from ekpo into
    (v_ebeln,v_werks,v_txz01,v_menge,v_matnr,v_brtwr)
    where ebeln = DOCNO.
    *& Selection of Plant address
    select single adrnr from t001w into v_adrnr
    where werks = v_werks.
    *& For Selection of phone,fax
    select single name1 tel_number fax_number from adrc into (v_name1,phone,fax)
    where addrnumber = v_adrnr.
    *& For E-Mail Selection
    select single SMTP_ADDR from adr6 into mail where addrnumber = v_adrnr.
    *& For CST No.,GST No.
    select single J_1ICSTNO J_1ILSTNO
                  from J_1IMOCOMP into (CST,GST)
                  where werks = v_werks.
    *& Selection of Vendor Address No., PO date
    select single reswk aedat from ekko into (v_reswk,v_aedat) where
    ebeln = v_ebeln.
    *& Selection of Supplying (Issuing) Plant address
    select single adrnr from t001w into vendor
    where werks = v_reswk.
    *& Selection of storage location
    select single lgort from ekpo into v_lgort where werks = v_werks
    and ebeln = v_ebeln.
    *& Selection of description of storage location
    select single lgobe from t001l into v_lgobe where werks = v_werks.
    *& Fetching data into internal table from ekpo
    select ebeln ebelp matnr txz01 menge brtwr from ekpo into corresponding fields
    of table iekpo where ebeln = v_ebeln and werks = v_werks.
    Fetching data into internal table from marm for Pck
    select * from marm into corresponding fields of table imarm for all entries
    in iekpo where matnr = iekpo-matnr.
    Fetching data into internal table from mara for Pack Type Code
    select * from mara into corresponding fields of table imara for all entries
    in iekpo where matnr = iekpo-matnr.
    Fetching data into internal table from tvegrt for Pack Type Description
    select * from tvegrt into corresponding fields of table itvegrt
    for all entries in imara where magrv = imara-magrv.
    Fetching data into internal table from eket for Receipt Date
    select * from eket into corresponding fields of table ieket
    where ebeln = v_ebeln.
    Selection of Order Type from mepo_topline
    *select single bsart from mepo_topline into v_bsart where ebeln = v_ebeln
    *and superfield = v_werks.
    *if v_bsart = 'UB'.
    xhead = 'Replenishment Order'.
    *eleseif v_bsart = 'ZSTO'.
    xhead = 'Purchase Order'.
    *endif.
    *& Defining of variable for Printing Line Serial Number,Total Quantity,
    *& Total Value
    =====================================================================
    This is Code2 (is in the main window)
    ==========
    xln = 0.
    tmenge = 0.
    tvalue = 0.
    Loop for printing table
    loop at iekpo into wekpo.
      xln = xln + 1.
      xmatnr = wekpo-matnr.      " Material Number (Code)
      xtxz01 = wekpo-txz01.      " Material Name
      xmenge = wekpo-menge.      " Line Quantiy
      xbrtwr = wekpo-brtwr.      " Basic Rate
    *& Pck
      read table imarm into wmarm with key matnr = wekpo-matnr.
      xpck = wmarm-umren.        " Packing Size
    *& Num
      xnum = xmenge / xpck.      " Numbers of Packing
    *& Line Value
      xvalue = xmenge * xbrtwr.  " Line Basic Value
    *& Packing Type
      read table imara into wmara with key matnr = wekpo-matnr.
      xpacktype = wmara-magrv.   " Packing Type Code
    *& Packing Type Description
    read table itvegrt into wtvegrt with key magrv = imara-magrv.
    xpackdesc = wtvegrt-bezei. " Packing Type Description
    *& Receipt Date
      read table ieket into weket with key ebeln = v_ebeln.
      xrcpdt = weket-eindt.      " Receipt Date
    *& Report Total
      tmenge = tmenge + xmenge.
      tvalue = tvalue + xvalue.
    *& Serial No. increment
    endloop.
    =====================================================================
    Thanks and Regards,
    Yogesh Pathak

    Did you debug and check the umber of values in internal table before calling the TABLE Node....
    seeing all SELECT SINGLE along with WHERE = condition and no loop call on them, my assumption  is there will be on record only. Check in Debug mood. Search forum to find how to debug a smartform.

  • InDesign 5.5: Strange Printing Transparency Issues

    Hi guys, long time reader, first time poster. This forum has helped with a lot of problems, so thanks, and hopefully you can help with this one.
    I'm working on a multiple-spread page for a client that is giving me some strange issues when it's printed. The document has an image as a background for the entire page, and then a black box over the image with some text on top of it. For some reason, the black box with text is letting the image underneath show through, almost as if the box is 99% transparent or something. I've checked each box individually, and there's nothing in the transparency/attributes boxes. I'm not sure how, exactly, to solve this issue -- is there some sort of universal transparent image setting (for instance, set black to 99% opacity always or something similar)?. It's the only thing I can think of.
    InDesign CS5.5, OSX Lion. The files are a combination of TIFF and JPG images, and I get the same issue no matter what image format is underneath.
    Any feedback is welcome here.

    No problem, Peter. I've included a few shots from various pages (the problem stems to all black boxes placed over images over the 64 page document) on the links below.
    http://img40.imageshack.us/img40/5964/88392023.jpg
    http://img94.imageshack.us/img94/9741/93991019.jpg
    http://img20.imageshack.us/img20/7883/10837728.jpg
    The third one is the page that I took the picture of the printout with my phone.
    I've tried this on an offset press and a digital press; with 'knockout group' ticked and not. For the life of me, I can't understand why the black is still overprinting on the image when it shouldn't be.

Maybe you are looking for

  • When I click for a new tab this window now opens ... "chrome://nspdlmsd/content/newtab/newtab.html" - I want it to go back to being a blank page.

    As above. For the past few days now, whenever I click 'open new tab' in firefox it opens immediately at the url posted above. I did, unsuspectingly which is how they get you if you are not careful, installed MySearchDial but removed it completely thr

  • Unable to read multiple files in BODS

    hi all, i am unable to read multiple files [with same format of fields] using wild card characters in file name. scenario: i have 2 files: test1.xlsx & test2.xlsx in the excel file format, for the file name column, i have given test*.xlsx. and done t

  • Log file in project online

    Hallo, I Need crate a log file which will contain all transactions made by project online users. how can i do that.

  • Shape Options in Photoshop Elements 9

    I attempted to draw a leaf pattern over a photograph.  In the Shape Options drop-down box it allowed me to "draw from center."  Since I was experimenting in how I wanted to draw shape over pic, I went to try a different option other than drawing from

  • IMac email display names

    This has been a really annoying thing that has been happening to me with the mail application. When you make an email in the mail application it asks if you want to give it a description.  So for example on my ebay email address I described it as Eba