Problem sending output directly to a shared printer

Hi.
I am having problems in generating character reports output directly to my printers, my situation is as follows:
We have a Windows 2003 server running an application server 10g and a forms and reports application, if I connect a printer directly to the server my report output is printed perfectly, the problem starts when I try to print from any client machine, since windows does not let you rename a shared printer (it lets you rename the printer in the machine to witch it is connected but in any other machine sharing this printer Windows appends a "on machineX" to the printer name so this poses a problem when trying to pass a desname parameter to reports since it contains spaces.
I solved this issue by adding a local printer to the server machine pointing to a local port that connects this printer to the physical printer in the client machine, this works all right to print from windows (notepad, DOS print command everything prints perfectly). But my reports won’t print. Whenever I send a report to this printer the job gets into the spool but in the status says "error-printing", this only happens when the jobs are sent directly to the printer. If I lookup the job in the reports server queue it appears as correctly finished.
I can even lookup the .txt file from the reports cache and issuing a DOS print command prints the job without issues in my shared printer.
Hope someone can help me out in this one since I am running out of ideas as to how to solve this issue.
Thanks

I forgot one important piece which is why I am asking the question. I am running the report within an Oracle 10g form. I pass all the parameters across to the Reports Server, as seen above. When I run via the PDF option, I just change the DesType to Cache and DesFormat =PDF. When I run with this, it works and displays the report in a new browser window.
I just want to run the report with the exact same parameters but instead of generating a PDF, I want to run the report and send it directly to the printer without previewing it.
Chris

Similar Messages

  • Problem Connecting to Shared Printer on Leopard from Windows XP

    Hey guys,
    Just installed Leopard yesterday, and I have a Canon PIXMA MP160 printer connected via USB.
    I have set the printer to be Shared, and enabled Printer Sharing in the Sharing preferences.
    However, when I try and connect to the printer from a Windows XP laptop, it says: Access Denied, Unable to Connect.
    I imagine that this is because I would have provide a username / password combo in order to access the network resources on my Leopard machine. I just can't figure out how to send the credentials, or disable the login necessity if needs be.
    If this isn't the problem, or if it cannot be fixed then the alternative is to connect the printer to my router, which shares it via SMB. Now that's fine when I want to connect to it from Windows, but I can't figure out a way to set it up on Leopard.
    The MP160 driver that comes with Leopard isn't marked as "Modern" which, according to the documentation means that it cannot be used to install IP or Windows Shared printers.
    So my question is, to sum up, is there a way to fix the access problem when trying to access a shared printer on Leopard from Windows, and is there any way I can install and use the printer from Leopard while its shared from my Router via SMB?
    Thanks in advance.
    Edit:
    I just thought it would be helpful to say that I'm able to connect and browse through SMB shares from Windows Systems, and I'm able to connect and browse through shared volumes on Leopard from Windows. It's just the printing that's not playing fair.
    Message was edited by: Jasarien

    I had Bonjour for Windows working on two XP machines before I upgraded to Leopard. After that when the Bonjour printer would not work I deleted it from the XP machines and re-ran the Bonjour Setup App. It can find the printer every time, but it will not finish and will give me an error instead.
    I've also verified that I have Printer Sharing turned on and the printer is specifically set to be shared. I'm out of ideas.
    Has anyone heard reports of Bonjour 1.0.4 not working with Leopard or just being buggy under similar circumstances? If that's not the problem, then I must be missing something. Suggestions welcome.

  • Access a local/shared printer without Reports

    Hi,
    Our envirronment: Forms 6i + Windows 2000 / XP + Oracle 9i
    We are using some thermal printers in our point of sales and the speed is an issue.
    I'm actually using the HOST command to send a text file to a printer: This text file is created with the package text_io.
    Host('copy test.txt > prn');
    I now have to use a Windows printer and I have to change my code for something like
    Host('print /d:\\aComputer\aprinter test.txt');
    I think that's how I will send it but my tests are negative at the moment. The printer is on the port USB001 and it may be my problem.
    Question:
    Is there a way to send my data directly to the printer without using Reports? If I can send it directly to a USB printer port, I'm pretty sure that will work.
    Any help will be greatly appreciated.
    Thanks in advance and have a great day,
    JF

    To make you more clear :
    Steps 1:
    Write the java class to format the output.
    formatted string could be like :
    for printing
    abc
    bcd
    StringBuffer printData= new StringBuffer();
    printData.append("abc");
    printData.append('10');
    printData.append('13');
    printData.append("bcd");
    String arr = abc.toString();
    let \\n7003\awb_printer be the printer name
    String      printerName = "\\n7003\awb_printer";
              try {
              FileOutputStream printerConf = new FileOutputStream(printerName);
              printerConf.write(printData.toString().getBytes());
              printerConf.flush();
              printerConf.close();
              catch(Exception e)     {
                   System.out.println("Exception at writing to printer "+ e.getMessage());
    Like FORM_FEED --> char(12)
    WHITESPACE char(32)
    2) sign the jar file
    3) add a bean in the form. make it size small so that it is not visible(visible =false)
    set its implementaion class.
    in the custom event set the printer name, data to be printed etc..
    Note : the printer speciifed is with respect to the client system unlike in reports.
    hope this helps
    deepa

  • Print the Web report directly to client default printer

    I've config out report URL with following parameter to print report output directly to client's printer, but when querying the report, nothing occurs in this printer. I still get the message of "Task done successfully"
    "http://server:7777/KienReport/rwservlet?report=kien_output.rdf&P_JDBCPDS=hr/[email protected]:1521:ora9i&destype=PRINTER&desformat=PDF"
    Do you know how to config that?
    Thanks,
    Kien

    Do you solved this? can you tell me how to solve it.
    best regards.

  • Accessing Windows shared printer, no GIMP driver for Canon iP3000. Options?

    I checked a few pages worth of threads but couldn't find a solution to my problem.
    Finally accessing my Windows shared printer. I have a Canon iP3000 and it doesn't print when I use the generic driver. I tried selecting the GIMP "Canon BJC 3000" driver but the prints end up shrunken to about a quarter of the paper size (8.5"x11"), my paper was set up and configured correctly. Any options for correcting this?
    I had planned on connecting the printer to my MacBook Pro but all the support I could find was for sharing from Windows, so if anyone knows a good resource for such a setup, that'd help too.

    There are new versions of Gimp-Print, now called Gutenprint, coming out on a regular basis. Check if the latest has your model:
    http://gimp-print.sourceforge.net/MacOSX.php3
    To share from a Mac:
    http://www.ifelix.co.uk/tech/3012.html

  • Acces to shared printer, succes on and off

    In our little office we have two iMacs connected. ("Pernille" and "Anne")
    Pernille is sharing our HP-9300 printer that is connected through USB to her iMac.
    Anne is 50% of the time able to print via network through Pernilles iMac.
    But sometimes Anne can not find Pernilles shared printer.
    Has anyone had succes solving this?
    iMac   Mac OS X (10.4.8)   HP 9300

    Does Pernilles iMac go to sleep? If so, don't think you can find the shared printer. Hope this helps.
    I have a simular problem. I can find the shared printer on another iMac, but I cannot print anything on it. The shared printer sees the print request but then "stops" it after about 5 seconds.
    GL rj
    IMac 1GHZ Mac OS X (10.3.9)

  • Send report output directly to printer

    How can I do that using HTMLDB
    tks in advance.

    From HTML DB, I don't believe you can. Some work around's are discussed on the HTML DB forum - see HTML DB Report printing with printing options for a starting point.
    You can of cause run a SQL statement using the SQL Command line, and spool the output of that to a printer. How you do it differs based on which platform you are on.

  • Adobe Form output cropped when sent directly from SAP to printer

    I have created an Adobe Form (not interactive) that looks perfectly OK when previewed in Adobe Acrobat viewer but when printed blank margins of 4-5 millimeters are applied on all 4 paper edges. The form was designed with a coloured frame around it but the margins effectively remove most of the frame. The form content is being cropped instead of being compressed inside the margins.
    The form has been created with LiveCycle Designer via SAP transaction SFP. I am generating the form from an ABAP program
    When the form is printed from the Adobe Acrobat viewer I have the option to set Page Scaling to 'Fit to Printable Area'. This makes the form content being compressed inside the blank margins and the coloured frame remains intact. If I leave the Page Scaling setting as 'None' the output is being cropped as described above.
    The real problem occurs when I want to print without previewing first. I need to do that since previewing enables the user to skip printing and the application must know if the form has been printed or not. I have so far found no way to make the printer print on the paper edges or fit the content to printable area. Is there some setting in the output parameters than handles this?
    Also there is a need for duplex printing when sending form directly to printer. On help.sap.com there is information about duplex print for SAPscript and Smartforms but nothing for Adobe Forms.
    Here is an excerpt of the ABAP code used for printing the Adobe Form:
      DATA: zs_outparams TYPE sfpoutputparams,
                 z_fmname     TYPE rs38l_fnam.
    Set some print parameters
      zs_outparams-nodialog = abap_true.        "No user dialog
      zs_outparams-device   = 'PRINTER'.          "Output device
      zs_outparams-dest     = z_pdest.              "Printer name
      zs_outparams-reqnew   = abap_true.        "New spool request
      zs_outparams-reqimm   = abap_true.        "Print immediately
    Open print job
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = zs_outparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
      IF sy-subrc <> 0.
        RAISE print_error.
      ENDIF.
    Get FM name for form
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = 'Z_TEST_FORM'
        IMPORTING
          e_funcname = z_fmname.
    Call FM to print form
      CALL FUNCTION z_fmname
        EXPORTING
          i_header       = t_data_for_form
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
        RAISE print_error.
      ENDIF.
    Close print job
      CALL FUNCTION 'FP_JOB_CLOSE'
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
        "Ignore
      ENDIF.
    Please advise on how to
    -  avoid the content cropping
    -  enable duplex print
    when sending Adobe forms directly to the printer
    Thanks very much!
    Bernt Evensen

    Thanks for your answer, Ramachandra!
    However I need some more specific information to solve this.
    Which printer layout settings are relevant for the handling of margins and duplex printing for Adobe Forms?
    I have not set up the printer myself but when talking to the printer guy which settings should I recommend him to look at?
    I can see in transaction SPAD that there are settings specific to SmartForms but there is nothing said about Adobe Forms. Is there some way to make Adobe Forms related setting appear in SPAD for a device type?
    Maybe my problem is not related to the printer device settings but rather to the way the printer is being called. When printing duplex we will have to override the default settings of the printer anyway.
    Function module FP_JOB_OPEN has a parameter structure of the type SFPOUTPUTPARAMS. Which fields in this parameter structure are to be manipulated to get duplex print and output fitted to page size?

  • 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

  • Parental control problem printing to a shared printer

    Hello chaps,
    Here's an annoying one.
    Two Macs, both running OS X 10.6.3. They are both on a wireless LAN, once has a Canon Pixma 4200 printer directly connected via USB with Printer Sharing turned on - Everyone allowed to print.
    The problem: When my wife prints to the shared printer from her machine it works fine. When my kids try to print from their Parental Control-controlled account it doesn't.
    The job comes up in the print queue but with On hold (authentication required) next to it.
    The account has the box ticked to allow administration of Printers.
    I can find no place to Authenticate, to get the job to print, even via the CUPS Web interface (that I'm not an expert in).
    All clues gratefully received.
    Anyone have anu clues
    Message was edited by: Chris Noble

    Hello chaps,
    Here's an annoying one.
    Two Macs, both running OS X 10.6.3. They are both on a wireless LAN, once has a Canon Pixma 4200 printer directly connected via USB with Printer Sharing turned on - Everyone allowed to print.
    The problem: When my wife prints to the shared printer from her machine it works fine. When my kids try to print from their Parental Control-controlled account it doesn't.
    The job comes up in the print queue but with On hold (authentication required) next to it.
    The account has the box ticked to allow administration of Printers.
    I can find no place to Authenticate, to get the job to print, even via the CUPS Web interface (that I'm not an expert in).
    All clues gratefully received.
    Anyone have anu clues
    Message was edited by: Chris Noble

  • Cannot send report directly to printer

    Hi,
    we are installing new canon printers (irc2380's) and we are having difficulty getting the reports to the printer.
    If i send the output of the report as a file to the application server(solaris) and then print using an lp command then the report prints fine, however if we try to send the output directly to the printer, the report server thinks it has been successfull but nothing appears on the printer.
    We are using run_report_object, have tried looking at the ppd files but cannot get any to work, canon do not seem to have any specific for unix.
    Any help would be appreciated.
    Thanks

    Hello,
    If the Reports Version is >= 9.0.2 , an output file has been generated in the Reports Server cache ($ORACLE_HOME/reports/cache by default)
    and this file is sent to the printer with the script rwlpr.sh (in $ORACLE_HOME/bin)
    Check the content of the file generated in the Reports cache, test to send it "manually' to the printer
    Regards

  • Problems printing Acrobat documents on shared printer

    I have a MacBook Pro and a Mac Pro. I also have an Epson 1400 printer.
    When I print any Acrobat document using the printer hooked up directly to my MacBook, it prints perfectly.
    When I print the same Acrobat document using the printer hooked up directly to the Mac Pro, it prints perfectly.
    However, when I hook the printer to the Mac Pro and enable printer sharing, and then print the same document from the MacBook Pro using the shared printer via the network, the Acrobat document is reduced in size by around 50%. I have checked every possible setting and just can't find why this is happening.
    Thanks in advance for any help!

    The problem occurs not only through Acrobat. The prints have the correct size through the Mac only when the printer is directly connected via USB on the Macs but reduced size through the network. The problem occurs in any printer model on the network.
    I do not know how to solve this problem but curiously does not occur with Windows computers with Bonjour that prints to the printers connected to Macs.
    When Apple will fix this?

  • Problem picking up a Windows XP shared HP DJ1220C printer on a Mac mini

    Have a HP Desk Jet 1220C as a shared printer under XP Pro SP2, accessible to all other pc's on the network but cannot get the Mac mini to pick it up on the network even though I have no problem picking up all the shared hd drives on the pc's through the network via the Mac.
    DHCP service is via a Netgear router/hub and the Mac has to have pc's ip address input manually after pc reboot if DHCP assigns different ip address to pc's.
    Mac does not pick up pc's individual computer names on the network.
    Mac running OSX 10.5x.

    Hi Wayne
    Thanks for your reply.
    *>Your posts have been a little short of detail.*
    I was being careful not to overload the locals with too much info...
    *>1. How are you sharing the printer on the PCs?*
    ermm...usual way, PRINTER>SHARING>ON(assign printer share name)
    *>2. Did you try to share using Bonjour (on the Windows machines)?*
    I have, but can only get this to work if my printer is plugged into the Mac and not the default other way round.
    *>2. Have you followed macster's directions for joining a Windows workgroup?*
    This produces no results or information
    *>4. Did you then follow macster's directions for connecting to Windows shares?*
    This is how I have accessed the PC's disks and files which the Mac did from the get go. However, this does not pick up any shared PC printers.

  • Sending output to a printer in a background job

    I did a quick search on this issue and found a few suggestions.  One suggestion was to use something like this:
    SUBMIT RSFLFIND ... TO SAP-SPOOL DESTINATION 'LT50'.
    I looked at the SAP help for SUBMIT and it was quite helpful however it raised a few questions.  The program that am writing will be run in the background.  I want to create a simple report that will print at several different printers when it is done.  Looking at the help section (specifically this part):
    "The SUBMIT statement accesses an executable program rep. The executable program is executed as described under Calling Executable Reports.
    The program name rep can either be specified directly or as the content of a character-like data object name. The data object name must contain the name of the program to be accessed in block capitals. If the program specified in name is not found, an irretrievable exception is generated.
    The selscreen_options additions can be used to determine the selection screen for the program accessed and to supply it with values.
    The list_options additions allow you to influence the output medium and the page size in the basic list for the program accessed.
    You can schedule the program for background processing by specifying job_options. "
    It seems like I would create a simple program like this:
    DATA: number TYPE tbtcjob-jobcount,
          name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL DESTINATION 'LT50'.
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    That will then call the background job and the output will go to the print spool.  I have a few reservations about this.  The print spool will not be determined until the background job.  The background job creates sales orders and the material group, in the sales order, determines the printer that the final report will go to.  Also, if this is the way to do it, do I just do simple write statements in the background job?

    Hi,
    Please try this ... perhaps it may help.
    SUBMIT submitable TO SAP-SPOOL
                      SPOOL DESTINATION 'LT50'.
                      IMMEDIATELY 'X'           "Add here
                      VIA JOB name NUMBER number
                      AND RETURN.
    OR
    SUBMIT submitable TO SAP-SPOOL
                      SPOOL DESTINATION 'LT50'.
                      IMMEDIATELY 'X'           "Add here
                      WITHOUT SPOOL DYNPRO      "Add here
                      VIA JOB name NUMBER number
                      AND RETURN.
    Regards,
    Ferry Lianto

  • Problem with shared printer after upgrade to Maverick

    Hi Guys,
    I have one iMac and two windows PC which connect to the same WiFi router.
    The iMac has a HP LaserJet CP2025 attached to its USB port and shared with other windows PCs with no problem.
    Until I upgrade my iMac to Maverick recently, now those PCs cannot see the shared printer anymore.
    Do you have any ideas what configuration is changed in the Maverick which could cause this please?
    I have been searching through Apple communities and other tech forums and have tried many solution, but still cannot solve this. (I have also tried setting up LDP, but no luck so far)
    PS ... Shared files seems to work fine. I can access (read/write) the shared files/folders from windows with no problem (SMB and AFP enable).
    Any ideas, pointers or links would be appreciated.
    Cheers,
    ChaaPru

    Try a reset  >  OS X Mavericks: Reset the printing system

Maybe you are looking for