Sending file to br printed

I am working on a program that needs to be able to print some files. It should just be able to select files from a list and it should be able to send them to the printer (without opening them). To complicate matters more these files to be printed are pdfs. The printer I am dealing with is suppose to be "pdf aware," but is a network printer.
Is there anywhere that I can get some good information on starting a project like this?
-Brandy

Basic rule of I/O = "read" then "write"
You cant print any kind of file without first reading the file someway or the other. It is possible to read a file without necessarily showing it on screen.
Test this using text files. Read them into a JTextField and (if using Java 6) call the print() method to print these files.
Should be the same principle for pdfs
ICE

Similar Messages

  • Explorer Context Menu Convert Sends Files to the Printer

    Right-clicking PSD files and choosing "convert to PDF" sent the files to the printer!!!  I had hoped it would have brought up a dialog to convert the files to PDF...
    (I was looking for "combine as PDF" -- I'm not sure what happened to it?)
    I'm running Acrobat 11 on Windows 8.1
    -Donald

    All that context menu stuff is handled by the registry. The explorer application simply gets its information from there. So Labview can write to a registry key to add itself to handle a file type. This is why you can have multiple applications handle the same type and show up in the context menu.
    My point is that after I run LV 8.0, I will see both LV 8.2 and LV8.0 in the context menu (along with a couple of others). However, after I run LV 8.2, the LV8.0 option is removed. I'm guessing that this is related to a program's behavior in checking and setting the registry key to make sure that it is the default handler for the appropriate file types. NI would need to strengthen this code to be sensitive to previous versions of Labview.
    A rough example of how to do this is at  http://www.codeproject.com/w2k/extendingshell.asp
    Brian Rose

  • Photosmart plus b209-a passes all diagnostic​s, sends files to printer- but never prints them

    I have a photosmart plus b209-a set up on our wireless network.  we love it when it works.  But the problem is that even though it will pass all diagnostics- whether tools installed on the computer or using the online tests- it still won't print.  I've gone through the network utilities and the printer diagnostics and they both say all clear, but both times when I tell it to print a test page nothing comes out. 
    I have opened the document que when sending files to the printer, and the file will pop up for about half a second then disappear, and it won't print.  I have turned the printer on and off with no change.
    Now the really confusing thing- this only happens about 60% of the time. As I write this post, I have been trying to print from my computer on the network without success.  My wife just tried on her computer, and it is printing for her.  Sometimes it's the other way around and mine will print and hers won't.  It's not an ink thing or that my computer isn't on the network- as I've said the diagnostic utility shows the printer online and ready to use, it just won't print the thing.

    good questions-
    nothing between my computers and the router, they and the printer are about 15 feet from the router.
    Neither computers are upgrades of vista- one is XP sp3, the other is win7 home. 
    All utilities ran say the signal strength is good, and both computers will sometimes print and sometimes not, then after a reboot of the printer it will be a new situation with each one- changes all the time.
    Thanks for looking into this with me- I appreciate the help!

  • How can I send multiple pictures to the Kodak link (under file & then order prints)? if the photos are not sequential can it be done?

    how can I send multiple pictures to the Kodak link (under file & then order prints)?  if the photos are not sequential can it be done?

    Does the order matter here?Because the photos will be sent for printing. If there is any other reason, can you please cite example.

  • How to send a text file to a printer?

    Hi, I'm in dark on how to send a text file to a printer through Java Stored Procedure.
    Here are what I tried so far (OS: win 2000, Oracle: 817 or 9i2):
    1, Enable DOS command in Java Stored Proc. and try to send PRINT command there:
    public static String Run(String Command){
    try{
    Runtime.getRuntime().exec(Command);
    System.out.println("Command: " + Command);
    return("0");
    catch (Exception e){
    System.out.println("Error running command: " + Command +
    "\n" + e.getMessage());
    return(e.getMessage());
    public static void main(String args[]){
    if (args.length == 1)
    Run("print /D:\\\\enterprise\\john " + args[0]);
    else System.out.println("Usage: java OSCommand filename");
    PL/SQL wrapper:
    CREATE OR REPLACE FUNCTION OSCommand_Run(p1 IN VARCHAR2) RETURN VARCHAR2 AUTHID CURRENT_USER AS LANGUAGE JAVA NAME 'OSCommand.Run(java.lang.String) return java.lang.String';
    SQL command:
    //print /D:\\machine\printer test.txt
    I loaded the Java Stored Procedure into SYSDBS account, it failed silently, even though piece of code works fine in external JVM.
    2, Use filePrinter:
    public static String print(String printString) {
    try{
    String printerUNC = "\\\\machine\\printer";
    FileWriter fw = new FileWriter(printerUNC);
    PrintWriter pw = new PrintWriter(fw);
    pw.println(printString);
    fw.close();
    return "OK";
    }catch(Exception e){
    e.printStackTrace();
    return "Exception: " + e.getMessage();
    public static void main(String[] args) {
    try{
    String printerUNC = "\\\\machine\\printer";
    String printString = "Hello World";
    FileWriter fw = new FileWriter(printerUNC);
    PrintWriter pw = new PrintWriter(fw);
    pw.println(printString);
    fw.close();
    }catch(Exception e){e.printStackTrace();}
    I loaded it into SYSDBS too, and tried with this:
    SQL> select MY_PRINT.PRINT('HELLO from Oracle') from dual;
    MY_PRINT.PRINT('HELLOFROMORACLE')
    Exception: No such file or directory
    SQL> show user
    USER is "SYS"
    It works in external JVM too.
    What's wrong with this?
    Thanks for any help in advance,
    Charles

    Avi:
    Thanks for your response!
    I put the java code in SYS, 'cause I assume that account has max privilege. If the test is successful, I will move that to some user schema and then to deal with those privilege settings... But I'm unlucky.
    I checked Ask Tom, this is what I got from http://asktom.oracle.com/pls/ask/f?p=4950:8:1619723::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:38012348052,%7Bprinter%7D:
    ... Print file from PL/SQL ...
    If you are using Oracle8i, release 8.1 -- much can be done with Java. java
    would be able to print directly from the server.
    Looks like using Java to print out file is better than PL/SQL. But there's no more hint there! And, no new question can be asked there today either...
    I'm wondering whether we can create a socket to a printer and send the characters there directly... Anyone has experience on this?
    Thanks for all the help in advance,
    Charles

  • Trying to get Photoshop CS4 functional with Mavericks and an Epson 3880 printer. CS4 fails to send a file to the print queue. Have reinstalled the Epson 3880 driver for Mavericks. All looks good but no file is sent.

    rying to get Photoshop CS4 functional with Mavericks and an Epson 3880 printer. CS4 fails to send a file to the print queue. Have reinstalled the Epson 3880 driver for Mavericks. All looks good but no file is sent.
    Does anyone know how to fix this?

    What EXACT version of Photoshop CS4 are you running?  You should be on Photoshop CS4 v 11.0.2.
    Also run Apple's software update to see whether it offers you the latest Epson update:
    Printer Driver v9.33
    Epson Stylus Pro 3880, Drivers & Downloads - Technical Support - Epson America, Inc.
    MOST IMPORTANTLY:  have Photoshop re-create its own Preferences:
    To re-create the preferences files for Photoshop, start the application while holding down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop Settings file?"
    Note: If this process doesn't work for you while you're using a wireless (Bluetooth) keyboard, attach a wired keyboard and retry.
    Important: If you re-create the preferences by manually deleting the Adobe Photoshop CS6 Settings file, make sure that you only delete that file. If you delete the entire settings folder, you also delete any unsaved actions or presets.
    Reinstalling Photoshop does not remove the preferences file. Before reinstalling Photoshop, re-create your preferences.
    NEW Video! Julieanne Kost created a video that takes you through two ways of resetting your Photoshop preferences. The manual preference file removal method is between 0:00 - 5:05. The keyboard shortcut method is between 5:05 - 8:18. The video is located here:
    How to Reset Photoshop CS6’s Preferences File | The Complete Picture with Julieanne Kost | Adobe TV
    Mac OS
    Important: Apple made the user library folder hidden by default with the release of Mac OS X 10.7. If  you require access to files in the hidden library folder to perform Adobe-related troubleshooting, see How to access hidden user library files.

  • Send PDF file directly to printer

    Hi,
    I have a requirement. I need to send a PDF file to a printer directly for printing. Printer name will be fetched dynamically based on a parameter of report.
    Please let me know how can we do it.
    Regards,
    Guddan

    HI,
    Try this in your program. It may be useful to you.
    Declare this for printing options**
    DATA : ioptions LIKE itcpo .
    ioptions-tddest   = 'YOUR_PRINTER_NAME'.
    ioptions-tdimmed  = 'X'.
    ioptions-tdnoprev = 'X'.
    CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          application                 = 'TX'
          form                           = 'formname'
          OPTIONS                    = ioptions
          dialog                         = ' X '
    when you run the program directly it goes to the printer.
    Thanks,
    S.Kalaivani.

  • Error for send file to print

    I have a file that has 2 mb, when I send the file to the printer, the size file showed in the printer queue is 192 mb, do you know this problem ?
    Thank you for help.

    We need more information as to OS (not that important), printer (very
    important) and printer driver (also very important). If you are sending
    the pdf to inkjet printer it frequently has to rasterize (convert to
    dots) all of the information contained in the file.If it is a 3 or 4
    color printer using 24 or 32 bits for each dot on the page and you are
    printing at 600 or 1200 dpi much higher you are going to find yourself
    with a very very large file.
    Mike

  • Adobe Reader X v10.1.4 no longer sends pdf file to attached printer

    wants to save prn file.  (Adobe print command shows correct, default printer name.)  Printer works fine with other applications and used to print pdf files from Reader X even 2 weeks ago.  Windows 7 x64 with  MS Security Essentials - all systems up to date, no system changes (hard or soft) other than regular security and version updates.
    Ran Adobe Repair and rebooted - print command showing attached printer still asks where to save the prn file instead of sending job to turned on printer which works fine just before and just after Adobe fails to use it.  Will install older version of Reader, Adobe offers v9.5 if no one has a better solution since I am clueless.

    Thank you so much for trying to help.
    From your question I gather you have Reader X v 10.1.4 and have no trouble printing if you send to your printer.
    Alas I'm pointing to my one real printer, the Brother I'm sending the pdf file to print.  Worked fine for years until a few days ago.  Now when I hit "Print" on the bottom right of the below panel I get the "Save As" screen asking where I wish to save the pdf file name I'm trying to print followed by .prn.
    I have no problems in any other application printing.  If installing an earlier version of Adobe Reader proves it's not v 10.1.4 specifically, I'll have to try and send the prn file to the printer, perhaps by using the old DOS type command, or see if I can print pdf files on another system.
    You just made me think to try my backup PC with Adobe Reader X v10.1.0 - This works fine, both on its own printer and on the below named Brother attached to this system.  So the problem is either v10.1.4 or some interaction of Adobe with very recently installed Microsoft security or other OS updates for 64bit Windows 7.
    THANK YOU!

  • Send a txt file to the printer with java

    Hello,
    I want to sent a txt file to the printer in java. I' am using the USB port. I can try to setup a dos command (print c:\test.txt), but I don't know the exactly command.
    There is also another solution in java I thing but I don't know the code!
    Can somebody give me the exact command for DOS and/or the code I have to write in java?
    THANX!!!!

    in dos imo you are not able to use usb-port. if your printer would be on lpt you could use javacomm ( http://java.sun.com/products/javacomm/index.html ). there is also another thread talking about this (print text to lpt). for your usb-problem i don't have a solution. but you could use JNI (java native interface). write code in c, compile to dll and use it in java.
    tobias
    ps: the other thread ( http://forum.java.sun.com/thread.jsp?forum=31&thread=224460 )

  • Unable to send report output to printer when using RUN_REPORT_OBJECT in 10g

    Hello All,
    When I try to send my report output to a file from my form(10g), I get 'FRM-41213: Unable to connect to report server'. I can sucessfully send my report to printer when I set the REPORT_DESTYPE to 'PRINTER'.Here is the code from my when-button-pressed trigger.
    Am I missing something?
    declare
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN                
    repid := find_report_object('PWRR_CTRL_TYP_MAINT');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_ipkcaf7vm');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'DFLT');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'C:\TEST1.doc');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
         LOOP
         rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
              msg_alert('Report print successfully', 'I', FALSE);
    ELSE
         msg_alert('Error when running report', 'I', FALSE);
    END IF;
    END;
    Thanks,
    Anna

    Hi,
    its because
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'C:\TEST1.doc');
    references the report rdf pr rep file to run, not the output file. The Reports output file is always specified with DESNAME
    Frank

  • Error when sending report output to printer from Forms 10g

    Hi,
    I have a simple report that I am running from a form using run_report_object built-in. I can successfully send the report output to a file but when I send the report output to a printer my report is
    terminated with report status of 'TERMINATED_WITH_ERROR'. I am using the default forms service and reports server that comes with the forms builder. How do I specify the reports server to user my default network printer ?Following is the code that runs my report.
    Thanks,
    Anna
    PROCEDURE SEND_TO_PRINTER IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(50);
    rep_server system_variables.reports_server%type;
    alldone          exception;
    BEGIN
         select reports_server
         into rep_server
         from system_variables;
         if rep_server is null then
              msg_alert('Error getting the reports server name', 'I', FALSE);                
              raise alldone;
         end if;
         :ctrl.run_report_errors := 'N';                    
         repid := find_report_object('REP_OBJ1');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,rep_server);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
         IF :ctrl.rg_print = 'P' THEN
              --Send the output to printer.
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt');
         ELSIF :ctrl.rg_print = 'R' THEN
              --Rich Text Format
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'rtf');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,:ctrl.filename);
         END IF;
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
         LOOP
              rep_status := report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' THEN
              null;
         ELSE
              :ctrl.run_report_errors := 'Y';
              msg_alert('Error when running report.' || rep_status, 'I', FALSE);           
         END IF;
    EXCEPTION
         when no_data_found then
              msg_alert('Error getting the reports server name', 'I', FALSE);      
         when alldone then
              null;     
    END;

    If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
    LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel.

  • How to send output of a print  to a single pool in smartforms

    Hi,
    when iam taking a an out put from the invoice all the output has to be send to a single pool .means if we give an invoice number in vf03 and issue the output and if we choose print then it will directly got to spool.but requirement is to store all the spool numbers on application server and finall we have to convert all these into single pdf and then we have to print that.
    can any body tell me where to store these spool numbers and how we can send at a time to print
    help me pleases
    sasi

    Hi Sasi,
    Check the following:
    Exporting the Contents of a Spool Request as a PDF File
    Use
    You want to export the contents of a spool request as a PDF file to a directory of your choice, and print the file as required. The PDF file contains the print data in the format in which it would be output by the printer.
    The following procedure is irrelevant for the PDF-based form printing integrated as of SAP Web Application Server 6.40, since a PDF file is already returned. See also Displaying and Printing PDF-Based Forms.
    Procedure
    The PDF file is generated as follows with report RSTXPDFT4:
    1. Generate a spool request from the document to be printed.
    2. In transaction SE38, start report rstxpdft4.
    3. In the displayed window, enter the spool request number and the directory in which the PDF file is to be stored.
    Leave the Download PDF File option selected.
    Choose Execute.
    4. In the next window, you can confirm or change the path in which the file is be stored.
    Save your entries.
    5. The system displays a log from which you can see whether the report was successfully performed.
    You can then open the file from the directory and print it as required.
    Constraints·        The PDF conversion only supports true bar codes for Smart Forms, which were generated with the new bar code technology. In all other cases, the bar code is only simulated.  
    ·        PDF conversion, especially of ABAP lists, is slower and is therefore not suitable for mass printing. However, you can speed up the conversion to PDF using the FASTLISTCONV option in report RSTXPDF3.
    ·        The font selection for ABAP lists is predefined in the PDF converter and cannot be changed.
    For more information about constraints, see SAP Note 323736 in the SAP Service Marketplace.
    For further reference check the SAP documentation...
    http://help.sap.com/saphelp_erp2005/helpdata/en/94/45c53bcc422d42e10000000a114084/frameset.htm
    Thanks and Regards,
    Bharat Kumare Reddy.V

  • Adobe reader 11.0.5 - cannot print pdf file to network printer

    I have a 64 bit HP Pavilion a6230n PC running Windows 7, fully updated. I have wireless connection to a home file/printer server. My printer, a Brother HL-5140, is connected via USB to the file/printer server. All my other Windows programs capable of printing can print on the network printer - all except adobe reader. Adobe Reader sees the printer and all printing processes appear to be sending the file to the printer, however, the printer never gets the document. I've tried printing as a document, in which case the document sits in the printer queue until I delete it. If I send it as an image, each queue entry is deleted after adobe thinks it has printed. Again, nothing ever prints on the printer, and again, no other program running on my computer has any problems printing to this printer.
    I would appreciate any help with this problem.
    Addendum - 4 Nov 13:
    I uninstalled adobe reader 11 and installed a much earlier version, and now I can print pdf files. Clearly the printing issue is with the current versions of adobe reader.

    This phenomenon can happen with PDF files that have errors in them.  Adobe Reader or Acrobat may be able to fix these errors, but if you close the application, it will ask to save the corrected file.  If you save it once, that should no longer occur when you open it again.
    This is just one explanation, but it doesn't explain why that happens with every PDF you have.
    Test: does it also happen with a PDF that is not supposed to contain any errors: http://helpx.adobe.com/pdf/adobe_reader_reference.pdf ?

  • HP Officejet 100 - Print by bluetooth file share - wrong printing size

    Hello,
    I´m trying to print file from mobile device with android by sending whole file into the printer. I find desired image/jpeg and send it by bluetooth into paired printer. I need to print it this way and I can´t use third-party tools to print it...
    result is about 50% in scale... do anyone know why is that or how to solve this problem?

    Hello BlackDashieCat,
    I understand that you that when you are printing from your Android device the scale of the printed copy is 50% of what it should be. One options is to use a third party app that is available to you, and would work with your necessary requirements.
    The other option is checking out this technology, as it may suit your needs. I have included a link here to 'HP Mobile Printing for Business' for you to view.
    Thank you.
    I worked on behalf of HP

Maybe you are looking for