Java print service + print specific page

is there anybody know how to print specific page to the printer in java?
i am using below code. it able to print any txt file from page 1 to n. it just cannot work on printing on specific page??
code
String fileName = "NORMAL.txt";
     DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
//DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PAGEABLE;
     FileInputStream pclStream = new FileInputStream(fileName);
     PrintRequestAttributeSet attributes2 = new HashPrintRequestAttributeSet();
     //attributes2.add(new Copies(1));
     Doc doc = new SimpleDoc(pclStream, flavor, null );
     PrintService[] services = PrintServiceLookup.lookupPrintServices( null, attributes2);
     PrintService service = ServiceUI.printDialog(null,50,50,services,services[0],null, attributes2 );
     if(service != null) {
     DocPrintJob dpj = service.createPrintJob();
     dpj.print(doc,attributes2);

See it!!!
bye bye
import javax.print.DocFlavor;
import java.io.FileInputStream;
import javax.print.attribute.HashPrintRequestAttributeSet;
import javax.print.attribute.PrintRequestAttributeSet;
import javax.print.SimpleDoc;
import javax.print.PrintService;
import javax.print.ServiceUI;
import javax.print.Doc;
import javax.print.PrintServiceLookup;
import javax.print.DocPrintJob;
import java.io.File;
import java.awt.GraphicsConfiguration;
import java.awt.Rectangle;
import java.awt.GraphicsEnvironment;
import java.awt.GraphicsDevice;
public class Untitled1 {
public Untitled1() {
try {
Rectangle virtualBounds = new Rectangle();
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice gd = ge.getDefaultScreenDevice();
GraphicsConfiguration gc = gd.getDefaultConfiguration();
String fileName = "NORMAL.txt";
DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
FileInputStream pclStream = new FileInputStream(fileName);
PrintRequestAttributeSet attributes2 = new HashPrintRequestAttributeSet();
Doc doc = new SimpleDoc(pclStream, flavor, null );
PrintService[] services = PrintServiceLookup.lookupPrintServices( flavor, attributes2);
PrintService service = ServiceUI.printDialog(gc,50,50,services,services[0],flavor, attributes2 );
if(service != null) {
DocPrintJob dpj = service.createPrintJob();
dpj.print(doc,attributes2);
catch (Exception err) {
public static void main(String[] args) {
Untitled1 untitled11 = new Untitled1();
}

Similar Messages

  • Print Services not logging pages printed

    When setting up a print queue, we seem to have two options:
    1 - Press the plus button, enter the printer's IP address and give the new queue a name.
    2 - Add the printer to the print server, then share it using the queue that appears in Server Admin/Print.
    If we add printers using method 1, we have to use the "Generic Postscript Printer" ppd but page logging works correctly. If we add printers using method 2, the user can use all the printer's features but pages aren't logged.
    Anyone know of a way to set the printer's ppd correctly while still having the printed pages logged?

    I forgot to mention, the printers show up in the client's default browser as "queue_name @ printserver" no matter how we add the queue to the server. Printing itself works perfectly, so far as the pages all come out the way we expect them too.

  • Internet Printing Services - Printer "Device Status Page Error". Please Help.

    I am getting Device Status Page Error :
    We are unable to generate the device status page for the selected printer. Please contact your system administrator for more information.

    Hi,
    What’s the OS version of your server? If it’s Windows Server 2003, please try to refer to the following article to see if it could help.
    "Device Status Page Error" error message when your printer tries to display a status notification message
    http://support.microsoft.com/kb/884552
    Best Regards,
    Andy Qi
    Andy Qi
    TechNet Community Support

  • Adobe Print Services in Java Instance on iSeries

    Comment by moderator: An english overview of this thread is given in an answer to this posting.
    Sehr geehrter Herr Hoelters,
    wir möchten gerne GTS on System i fahren. Für fast alle Module aus GTS
    braucht man die JAVA Instanz. Das soweit ist wohl kein Problem.
    Für die Adobe Printing Services brauchen wir die Java Instanz auch.
    Nun gibt es wie unten aus dem Buch zitiert non supported Platforms.
    Im Hinweis Hinweis 925741 wird eine Lösung mit einem zusätzlichen
    Applikationsserver empfohlen.
    Dadurch stellt sich raus, das wir doch einen zusätzlichen Windows
    Server für diese ADS benötigen.
    In der PAM kann man folgende Informationen finden:
    Freigaben Adobe Document Services Datenbank-Plattformen DB2/400...
    freigeg.
    Datenbankversion Betriebssystemversion Datum Status
    DB2/400 V5R3 WINDOWS SERVER 2003/IA32 32BIT 05.12.2005 Freigegeben
    DB2/400 V5R4 WINDOWS SERVER 2003/IA32 32BIT 14.02.2006 Freigegeben
    Bedeutet das jetzt das ich die ADS nicht ohne Windows Server nutzen
    kann ?
    mit freundlichen Grüßen
    Carsten Schulz
    Erstens:
    Book: Global Trade Services Using SAP® GTS 7.0
    Page 13
    Depending on our process, it can be necessary to set up the following
    additional instances:
    SAP NetWeaver Java Stack
    All print forms in SAP GTS are available in Adobe print technology. If
    you want to use printing functions the Adobe Document Server (ADS) is
    required that is icluded in the delivery of SAP NetWeaver Java Stack.
    Printing documents and forms can be necessary in the following areas:
    - SAP Customs Management
    - SAP Risk Management Preference Processing
    - SAP Risk Management Letter of Credit
    Zweitens:
    Book: SAP NetWeaver 2004s SR1 Java: IBM eServer iSeries
    2.4 Running Adobe Document Services on Non-Supported Platforms
    Adobe document services (ADS) are currently not supported to run
    natively on all platforms supported by
    SAP systems based on SAP NetWeaver, in particular on 64-bit platforms.
    Procedure
    To use ADS in SAP landscapes on non-supported platforms, install an
    additional standalone AS Java on a
    platform supported by ADS.
    For more information, see SAP Note 925741.
    Drittens:
    Hinweis 925741 - Adobe Doc. Services (ADS) auf nicht unterstützt.
    Plattformen
    Hinweis zu IBM iSeries
    Zusätzlich zu der beschriebenen Lösung können Sie einen zusätzlichen
    Microsoft-Windows-Applikationsserver für die ADS im Java-Stack
    einsetzen, wenn Ihre Umgebung auf einem IBM-iSeries-Server installiert
    ist.
    Message was edited by:
            Carsten Schulz
    Message was edited by:
            Carsten Schulz

    Hello.
    This question and its answer might be interesting for the non german speaking members of this community, too. So I made a short translation of the discussion. Not in every detail but it should be sufficient to get the idea. If you have any further questions don't hesitate to ask here. For future discussions I would like to encourage all of you to use english as the forum language. The members of this community are distributed all over the world and using english is the only way to get feedback from most of them.
    Now to the question:
    Mr Schulz is interested in using GTS on a system i. To use the Adobe Printing Services support in GTS it is necessary to set up a Adobe Document Server (ADS). At the moment ADS does not run natively on system i. The PAM states that ADS runs on DB2/400 using a windows server. SAP Note 925741 suggests to run an additional application server. The question is now if there is no way to run a ADS on a system i without a windows server.
    The answer given by Mr Hölters can be outlined as follows:
    In fact ADS is not supported under i5/OS. To allow usage of ADS without introducing a second database platform to your system landscape there is a solution given in SAP Note 925741. Instead of having a second NetWeaver installation on a different platform you can add an additional dialog instance to your application server running on system i. If this dialog instance is running under Windows you can install ADS there and don't have to use a second database platform.
    With kind regards,
    Jan Stallkamp

  • Printing specific pages in a PDF

    What is the java code to create a print button to print specific pages in a multiple page PDF file? Help please!

    For more information on the print method, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.511.html
    Note the nStart and nEnd parameters in particular.

  • Printing HTML with Java Printing Service(JDK1.4 beta)

    Hi there!
    I'm currently checking out the new Java Printing Service (JPS) in the new JDK1.4 beta. This looks like a very promising printing API, with amongst others printer discovery and support for MIME types - but I have some problems with printing HTML displayed in a JEditorPane.
    I'm developing an application that should let the user edit a (HTML)document displayed in a JEditorPane and the print this document to a printer. I have understood that this should be peace-of-cake using the JPS which has pre-defined HTML DocFlavor amongst others, in fact here is what Eric Armstrong says on Javaworld (http://www.javaworld.com/javaone01/j1-01-coolapis.html):
    "With JPS, data formats are specified using MIME types, for example: image/jpeg, text/plain, and text/html. Even better, the API includes a formatting engine that understands HTML, and an engine that, given a document that implements the Printable or Pageable interface, generates PostScript. The HTML formatting engine looks particularly valuable given the prevalence of XML data storage. You only need to set up an XSLT (eXtensible Stylesheet Language Transformation) stylesheet, use it to convert the XML data to HTML, and send the result to the printer."
    After one week of reasearch I have not been able to do what Armstrong describes; print a String that contains text of MIME type text/html.
    I have checked the supported MIMI types of the Print Service returned by PrintServiceLookup.lookupDefaultPrintService(). This is the result:
    DocFlavor flavor = DocFlavor.INPUT_STREAM.GIF;
    PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
    aset.add(MediaSizeName.ISO_A4);
    aset.add(new Copies(2));
    PrintService[] service = PrintServiceLookup.lookupPrintServices(flavor,aset);
    if (service.length > 0) {
    System.out.println("Selected printer " + service[0].getName());
    DocFlavor[] flavors = service[0].getSupportedDocFlavors();
    for (int i = 0;i<flavors.length;i++) {
    System.out.println("Flavor "+i+": "+flavors.toString());
    Selected printer \\MUNIN-SERVER\HP LaserJet 2100 Series PCL 6
    Flavor 0: image/gif; class="[B"
    Flavor 1: image/gif; class="java.io.InputStream"
    Flavor 2: image/gif; class="java.net.URL"
    Flavor 3: image/jpeg; class="[B"
    Flavor 4: image/jpeg; class="java.io.InputStream"
    Flavor 5: image/jpeg; class="java.net.URL"
    Flavor 6: image/png; class="[B"
    Flavor 7: image/png; class="java.io.InputStream"
    Flavor 8: image/png; class="java.net.URL"
    Flavor 9: application/x-java-jvm-local-objectref; class="java.awt.print.Pageable"
    Flavor 10: application/x-java-jvm-local-objectref; class="java.awt.print.Printable"
    As you can see there is no support for text/html here.
    If anyone has a clue to what I'm missing here or any other (elegant, simple) way to print the contents of a JEditorPane, please speak up!
    Reply to: [email protected] or [email protected] or here in this forum

    Since you have 'printable' as one of your flavors, try this using a JTextPane (assuming you can dump your HTML into a JTextPane, which shouldn't be a big problem)...
    1. Have your JTextPane implement Printable
    ie. something like this:
    public class FormattedDocument extends JTextPane implements Printable 2. Read your HTML into the associated doc in the text pane.
    3. Implement the printable interface, since you have it as one of your available flavors (I'd imagine everybody has printable in their available flavors). Something like this:
    public int print(Graphics g, PageFormat pf, int pageIndex) {
            Graphics2D g2 = (Graphics2D) g;
            g2.translate((int)pf.getImageableX(), (int)pf.getImageableY());
            g2.setClip(0, 0, (int)pf.getImageableWidth(), (int)pf.getImageableHeight()); 
            if (pageIndex == 0)
                setupPrintView(pf);
            if (!pv.paintPage(g2, pageIndex))
                return NO_SUCH_PAGE;
            return PAGE_EXISTS;
        }Here's my setupPrintView function, which is executed once on page 0 (which still needs some polishing in case I want to start from page 5). It sets up a 'print view' class based on the root view of the document. PrintView class follows...
    public void setupPrintView(PageFormat pf) {
    View root = this.getUI().getRootView(this);
            pv = new PrintView(this.getStyledDocument().getDefaultRootElement(), root,
                               (int)pf.getImageableWidth(), (int)pf.getImageableHeight());Note of obvious: 'pv' is of type PrintView.
    Here's my PrintView class that paints your text pane line by line, a page at a time, until there is no more.
    class PrintView extends BoxView
        public PrintView(Element elem, View root, int w, int h) {
            super(elem, Y_AXIS);
            setParent(root);
            setSize(w, h);
            layout(w, h);
        public boolean paintPage(Graphics2D g2, int pageIndex) {
            int viewIndex = getTopOfViewIndex(pageIndex);
            if (viewIndex == -1) return false;
            int maxY = getHeight();
            Rectangle rc = new Rectangle();
            int fillCounter = 0;
            int Ytotal = 0;
            for (int k = viewIndex; k < getViewCount(); k++) {
                rc.x = 0;
                rc.y = Ytotal;
                rc.width = getSpan(X_AXIS, k);
                rc.height = getSpan(Y_AXIS, k);
                if (Ytotal + getSpan(Y_AXIS, k) > maxY) break;
                paintChild(g2, rc, k);
                Ytotal += getSpan(Y_AXIS, k);
            return true;
    // find top of page for a given page number
        private int getTopOfViewIndex(int pageNumber) {
            int pageHeight = getHeight() * pageNumber;
            for (int k = 0; k < getViewCount(); k++)
                if (getOffset(Y_AXIS, k) >= pageHeight) return k;
            return -1;
    }That's my 2 cents. Any questions?

  • Java Print Service API in Java Stored Procedure (Linux)

    Hi
    We are running an Oracle 10g database on Linux and I am in the proces of developing a java stored procedure which should utilize the Java Print Service API.
    I have made a simple stored procedure to list all available printers and the DocFlavors they support (se the code below).
    My problem is that no printers are listed. I have made a standalone java app. with the same code and executed it directly on the OS level of the Linux box through the Sun JDK 1.4.2 and here I get two printers.
    Is there any specific configuration I need to do to make it work?
    I am wondering if I need to grant specific authorisations through dbms_java for it to work...?
    Any help is greatlyh appreciated.
    ************************************** CODE BEGIN *************************************
    import javax.print.DocFlavor;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    public class TestPrintService {
    public TestPrintService() {
    public static void listPrinters() {
    // Get all available printers and their supported DocFlavors
    PrintService[] pservices =
    PrintServiceLookup.lookupPrintServices(null, null);
    System.out.println("Printer services: " + pservices.length);
    for (int i = 0; i < pservices.length; i++) {
    PrintService pservice = pservices;
    System.err.println("Printer: " + pservice);
    DocFlavor[] docFlavors = pservice.getSupportedDocFlavors();
    for (int j = 0; j < docFlavors.length; j++) {
    DocFlavor docFlavor = docFlavors[j];
    System.err.println("DocFlavor " + docFlavor.toString());
    System.err.println();
    ************************************** CODE END *************************************
    Cheers,
    Jacob Vennervald

    Found this on Oracle support:
    Cannot List Available Printers From The Database Using A Java Stored Procedure [ID 372694.1]
    Applies to:
    Oracle Server - Enterprise Edition - Version: 10.1.0.4.0
    This problem can occur on any platform.
    Symptoms
    Able to list available printers on a machine when running Java code outside the Database.
    When running the same Java code inside the Database as a Java Stored Procedure, no printers are found.
    Cause
    Due to security restrictions, this is expected results.
    The Java Docs state:
    "Services which are registered by registerService(PrintService) will not be included in lookup
    results if a security manager is installed and its CheckPrintJobAccess() method denies access."
    Also from the documentation it states:
    "A PrintServiceLookup implementor is recommended to check for the SecurityManager.checkPrintJobAccess() to deny access to untrusted code. Following this recommended policy means that untrusted code may not be able to locate any print services. Downloaded applets are the most common example of untrusted code."
    Using the checkPrintJobAccess(); call, it does produce a Security Exception when run inside the Database but not when run outside. The exception can be viewed within the log file found in the UDUMP directory.
    Solution
    Run the following code to confirm obtaining available __printers can not be done...__
    This is the code to create the Java Stored Procedure
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "ListPrinters" AS
    import javax.print.*;
    public class ListPrinters {
    public static String AvailablePrinters(){
    String strList;
    PrintService[] pservices =PrintServiceLookup.lookupPrintServices(null,null);
    if (pservices.length > 0 )
    strList = pservices[0].getName();
    else
    strList = "No printers found";
    return strList;
    public static String listprinters() throws Exception {
    String listofprinters;
    try {
    SecurityManager sm = System.getSecurityManager();
    if (sm != null) sm.checkPrintJobAccess();
    catch (SecurityException ex) {
    System.err.println("Sorry. Printing is not allowed.");
    listofprinters = AvailablePrinters();
    return listofprinters;
    This is the PL/SQL Wrapper
    CREATE OR REPLACE FUNCTION Get_Printer_Test RETURN VARCHAR2 IS
    LANGUAGE JAVA
    NAME 'ListPrinters.listprinters() return String';
    This executes the code
    SQL> SELECT Get_Printer_Test FROM DUAL;
    GET_PRINTER_TEST
    No printers found
    This is the output found in the trace file in the UDUMP directory
    *** SESSION ID:(144.28) 2006-07-08 09:02:25.518
    Sorry. Printing is not allowed.

  • Printing Services do not accept PDFs generated with Pages

    Hello,
    I have a MacBook Pro, OS X 10.4.1 and I have been using Pages to generate documents which I then turn into PDFs before sending to a printing service for printing. However, several print services that I need to use to stay cost competitive cannot accept PDFs generated by Pages (I believe they said or Quark). The print service printers will not print PDFs created by pages. I've probably spent 2 weeks trying to work my way out of this one and I can't seem to find a solution other than to manually rework all my files into Word documents which could take months. Does anyone have a suggestion for me? Thank you so much,
    Wendy

    I need to use to stay cost competitive cannot accept PDFs generated by Pages (I believe they said or Quark)
    The print publishing industry has agreed on a specification for print-ready PDF. The specification is an ISO standard known as PDF/X for blind eXchange, meaning that if the person preparing the digital master applies the specification then the person printing the digital master can depend on the master to be printable.
    QuarkXPress 7 includes PDF/X authentication internally and Apple Pages includes PDF/X authentication externally through the sysem-level Apple ColorSync filters. The print service provider should inform you of the printing condition she is selling you and should provide an ICC type PRTR printer profile for that printing condition.
    The ICC printer profile determines the ink limit, the detail in the highlights and the detail in the shadows, the gray balance relative to the tint of the paper (whether bluish, yellowish, reddish, or near neutral) and matches the laydown order of the inks in the printing system. If the print service provider has no ICC printer profile for a custom printing condition, ISO 12647 reference data are available from www.color.org and the print service provider should be able to build a separation to suit her process from that. This ICC printer profile should be set as the OutputIntent in the PDF/X filter, whether in QuarkXPress, in Apple Pages, in Adobe InDesign, in Adobe Acrobat or in any other compatible application.
    Best,
    Henrik

  • Turn off banner within Java Print Service API

    I have web services running on JBoss 4.0.5, which is running on IBM AIX 5.
    The issue I have is anytime I try to print something through Java Print Service within web services, there is always a banner, even though banner property is set to "never" on the print queue with AIX smitty. The bad news is that property value can be overwritten by applications, or by command line options with lp or lpr commands.
    Couldn't find any way or any attribute avaiable in Print Service API to diable banner printing. Currently only default attributes are used in document printing.
    Any help would be greatly appriciated!

    fermar84 wrote:
    Thanks for answering,
    Yes i totally agree with you. There is a per device basis. However you could think (and here i am letting my imagination fly) about categorizing devices, lets say all the digital cameras. Although it would still be per-device basis, some would have common commands like turn on, or turn off. Don't you think so?
    Now lets take a simple example, can a Java program turn off the computer where its running?
    Thanks in advance,
    FernandoDo I think all digital cameras expose an "on/off" API? No, I don't. Some may, they all may, but that's in no way a Java issue.
    Can a Java program turn off a PC? No. It can call native code to do so, but then it isn't Java doing the work. All of what you're talking about is very much platform-specific, and that's where Java is generally it's weakest

  • How can i print specific pages against searched word or name (in one print command) from 1000 pages

    how can i print specific pages against searched word or name (in one print command) from 1000 pages

    Thanks, Alex!
    ok, I try first approach in print4.vi, but Labview return an error (view jpg); if I cut From, To controls, the VI print all pages. The same things happen also if I trasform I32 in Variant.
    I don't try second approach, because at this time I have only one report
    I try also with VB macro: this is better (print3.vi) but.....if I use:
    Sub Print_Pages_From_To()
    ActiveDocument.ActiveWindow.PrintOut Range:=wdPrintFromTo, From:="2", To:="3"
    End Sub
    is ok; print the pages selected; if I use:
    Sub PrintPages()
    ActiveDocument.ActiveWindow.PrintOut  Pages:="2-3"  
    End Sub
    printer print all pages.
    what do you think?
    regards,
    Italo
    Attachments:
    print Problem.jpg ‏39 KB
    print4.vi ‏19 KB
    print3.vi ‏19 KB

  • How to print specific page in smartform !

    Hello Friends,
                  I like to print specific page in smartform. for Ex. page 4. But when I give page no. 4, the print preview not showing the exact page.
    Thank you for your time.
    Senthil

    Hi Senthil,
    chk this link you get a brief idea abt Smartforms.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    Reward points if you find this helpful
    Regards,
    Harini

  • How to print a specific page from the internet

    I have tried to print a specific page, and get about seven pages that are linked to it, without
    seeing the specific page I wanted printed out. The page settings under printer only lists header and footer
    info, and no choices to print only this page or frame. There is no way to print  one specific page on this printer?
    I always was able to do this  with the Epson printer I just replaced, but unable to with this printer.
    Please help! There must be a way to do this when printing from the internet. Thanks for any help.

    deezire
    Welcome to the HP Community Forum.
    I don't have any idea what you are trying to print, nor do I wish to know.  Smiling.
    The key may be to control this in Print Preview like you would with most things when you are printing from a Browser.
    Manage Print Output with Print Preview
    ========================================================================
    Depending on which browser you are using, you might also be able to make use of Smart Print:
    Downloads and Information:
    HP Printing Software
    Scroll down > look on the right side of the page under Web Page Printing for the HP Smart Print download
    How-To:
    Smart Print Help and FAQ
    Includes: How to update your installed version of Smart Print:
    #6: How do I get the latest version of Smart Print?
    Smart Print updates automatically using the default settings. You can choice to update manually by selecting the "?" on the Smart Print Preview/Print bar located in the upper left corner of Smart Print. Select the Updates tab to get the latest version.
    Click the Kudos Thumbs-Up to say Thank You!
    And...Click Accept as Solution when my Answer provides a Fix or Workaround!
    I am pleased to provide assistance on behalf of HP. I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • Print Iwork Pages "Book" using Apple's Print Service?

    I've created a thirty-page travelogue in Pages, mostly text with several dozen photos. Is there a way to have Apple publish it using the iPhoto print service?
    Thanks,
    George
    Dual 2.7 G-5 PowerMac   Mac OS X (10.4.4)   4GB Memory, 250+400GB SATA Drives, Brother MFC -5440CN Printer

    I'm not sure about the conversion.
    In this thread, Old Toad gives information about DPI settings. I haven't done much with that yet but it might help you out.
    http://discussions.apple.com/message.jspa?messageID=1516265#1516265
    I have gotten good results with doing this but have no idea what the DPI setting is for what I've done.
    Hope this helps.

  • Publish Pages Document using Apple's print service?

    I've created a travelogue in pages. 60% text and 40% photos.
    Is there a way to use Apple's print service (a la iPhoto Books) to publish a few copies?
    Note: I posted a similar message in the iPhoto forum. Sorry if that breaks any rules of this discussion board.

    Hi George, welcome to the discussion.
    Have you tried to import the pdf file(s) into iPhoto, and then selected them into a book so they could be printed ?
    Also this sounds kind of expensive.
    Just a thought
    Johnny

  • I need help for printing service in Java

    Hello :
    I need to print some file from java program .
    I did every thing , but when i run the program : it didn't return any printer as print service from the system, although I install 2 printers in my system.
    by the way : i use Windows XP

    I was in a rush this morning and forgot my crystal ball. Please post your code and remember to use the code tags.

Maybe you are looking for

  • Updates to exchange appointments not showing in iCal

    I have several calendars syncing to iCal - when i accept meetings in Exchange, they are added to iCal, but if any changes are made those changes do not carry over into iCal. Suggestions? I'm running 10.10

  • Need help with Kerb. jdbc from Linux to MS SQL 2008

    Hello Forum, I am getting an erro when I try to use Kerb. trusted security to connect to sql server. 4.0 documentation reflects it's absolutely possible. Not only that, I have ms odbc installed on the same box and it provides Kerbers (not ntlm) conne

  • TS1424 authorizing problems

    I have deauthorized all computers and have gone back in and authorized my new PC.  When I try to transfer purchases from my iphone, itunes tells me that the PC is not authorized therefore cannot transfer.  It ask me if I want to authorize, when I say

  • Search help ehancement of field in t-code F-02.

    Hi all, I want to ehance a filed's search help in t-code f-02. requirement is as below. when you click one field's sech help in t-code f-02. A search help pop-up window will display. In this pop-up window, there are several tabs.  I want to add a new

  • Bates numbering odd even pages on right left sides of page

    with acrobat 9 pro is there a way to bates number files with numbers on the right side of the page with odd numbered pages and on the left side of the page for even numbered pages. when printed and bound into a book would like to have the bates on th