How to use Linux Print queue in client_text_io.fopen to print from Windows

We have a forms application deploed on LINUX (Oracle application server 10g).
I have to print a file from local windows PC to a linux Print Queue from forms
I have the following code
PROCEDURE file_to_printer (i_filename_output IN VARCHAR2
,i_network_printer IN VARCHAR2) IS
l_line VARCHAR2(2000);
l_fileid_output client_text_io.file_type;
l_fileid_print client_text_io.file_type;
BEGIN
l_fileid_output := client_text_io.fopen (i_filename_output,'R');
l_fileid_print := client_text_io.fopen (i_network_printer,'W');
WHILE 1 = 1 LOOP
client_text_io.get_line (l_fileid_output, l_line);
client_text_io.put_line (l_fileid_print, l_line);
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND THEN
client_text_io.fclose (l_fileid_output);
client_text_io.fclose (l_fileid_print);
END file_to_printer;
Everything works fine if I use a windows printer like \\machine\printer.
I want to use a Linux printer and specified the print queue as
\\machine\print_queue_name. It's not working
and I get error ORA-302000 on the following line
l_fileid_print := client_text_io.fopen (i_network_printer,'W');
and if I give only the queue name no error but it's not printing.
Could you please tell me how to use a Linux/Unix print queue in this situation

the simplest way is to edit the interface file (look in /etc/lp/interfaces for existing printers). Each script is
run per print job where stdin has your print data, and stdout is going to your print device. You can just
send the output to a file instead (assuming you can create a file in the windows directory from the solaris
box). If it's a network share, you could use smbclient.
-r

Similar Messages

  • How can use linux in my macbook?

    how can use linux in my macbook?

    You can use various distributions of Linux either by running them under Boot Camp, or in a virtualized environment such as Parallels or VMWare's Fusion. Note that you may have to try several different distros until you find one that works. I settled on Ubuntu running under Parallels.
    Best of luck.

  • How to use airport time capsule on a dell portable pc with windows 7 taking in consideration that Time machine doesn't run with Windows ?

    how to use airport time capsule on a dell portable pc with windows 7 taking in consideration that time machine doesn't run with Windows ?

    TM does not work like that.
    If you want files to use later.. do not use TM.
    Or do not use TM to the same location. Plug a USB drive into the computer and use that as the target for the permanent backup.
    Read some details of how TM works so you understand what it will do.
    http://pondini.org/TM/Works.html
    Use a clone or different software for a permanent backup.
    http://pondini.org/TM/Clones.html
    How to use TC
    http://pondini.org/TM/Time_Capsule.html
    This is helpful.. particularly Q3.
    Why you don't want to use TM.
    Q20 here. http://pondini.org/TM/FAQ.html

  • HT3669 My macbook pro does not print through my PC to my EPSON RX 500 after loading OS X 10.7.4. It shows on the print queue "error"  However, it will print if I directly connect my laptop to this printer via the USB connection.  Any ideas?

    My macbook pro does not print through my PC to my EPSON RX 500 after loading OS X 10.7.4. It shows on the print queue "error"  However, it will print if I directly connect my laptop to this printer via the USB connection.  Any ideas?

    It's all about setting up what ever version of windows you have running on your pc to share the printer. If you still get stuck post in a windows forum for help.

  • How to use WMI to query to distinguish legacy and UEFI mode Windows?

    How to use WMI to query to distinguish legacy and UEFI mode Windows?

    This document covers requirements for UEFI support.
    http://msdn.microsoft.com/en-us/windows/hardware/gg463144.aspx
    One of the requirements seems to be ACPI. The Win32_BIOS class of WMI has a BIOSCharacteristics property that indicates if ACPI is supported. See this link for properties exposed by Win32_BIOS:
    http://msdn.microsoft.com/en-us/library/aa394077(v=VS.85).aspx
    There is a PowerShell example showing how to get this information at the bottom. You will need to study the document in the first link to see what else is required.
    Richard Mueller - MVP Directory Services

  • How do I change platform for downloading and installing Photoshop Elements from Windows to Mac?

    How do I change platform for downloading and installing Photoshop Elements from Windows to Mac?

    As long as your license supports both platforms you should only have to download the Mac version and install/activate using your serial number.  If you need help finding a link to download the file, please indicate the PSE version you need.

  • How to use Linux legally for business in the US

    Hello.
    I am doing some research on software patents and how they inhibit businesses in the US from using FOSS.
    My question is, basically, what would a business have to do in the US to use Linux in place of Windows/Mac and make sure they are not violating software patents? Violating these patents (for example, including an illegal H.264 codec in a company's system image so that video can be played by employees) present a serious liability to US businesses and could potentially discourage them from abandoning a proprietary OS for a free one.
    One portion (of many) of this discussion I do not understand is how does one guarantee their system is clean of illegal codecs? For example, assume if one used his/her package manager to delete any codec-related packages he/she could find. If this person used a web browser to navigate to a website that included in-page H.264 videos or sound effects encoded using MP3, would this content merely not function (meaning, the person would be legally safe but unable to play the content)? Or do web browsers have these illegal codecs built in? I don't understand how website programming works enough to know the answer to this particular question.
    I would appreciate any insight on this issue (and/or any thoughts you might have on this subject).
    Thank you for your time.

    See distro's to avoid here if you are in the US:
    http://www.gnu.org/distros/common-distros.html
    And, linked from that page, see ones that should be safer:
    http://www.gnu.org/distros/free-distros.html
    With Parbola:
    https://parabolagnulinux.org/
    Being Free and based on Arch.
    Now, the problem, completely free is very picky about the hardware it will run on so you will want to procure hardware specifically built to run under a Free system without issues.  Licensed distributables you can get away with using, for example: Adobe Flash Player.  Just accept the license agreement and you should be good to go.  The minefield is that somewhere in even the Free code there could be a patent lying in wait.  Something that someone in the US patented and the Free systems programmers were not aware of it.  This is an issue in the US because commercial Operating Systems such as Windows will indemnify their users against patent infringement.  On Free systems however you, the business using them, could end up being on the hook for significant damages.
    The reason a completely Free system is very picky about what hardware it will run on is because all those binary blobs in common Linux distributions contain code that just makes stuff work.  Without that you have to make absolutely sure that what you have will work with just Free software.
    See:
    http://www.gnu.org/philosophy/fighting- … tents.html
    Last edited by headkase (2013-02-21 01:25:52)

  • How to use Epson Workforce 635 all-in-one to print from iPad2?

    Have no idea how to connect iPad2 to the printer and was unable to find printer when chose Print. Wireless networking has been set up (tested w/ a PC). Pls help.

    That printer does not support AirPrint, so you cannot print natively from the iPad.  You'll have to use a third party app like print n share or Printopia.  They are in the app store.

  • How to use Linux OS parallel with Windows

    I've been using my laptop(P500) for a year and half now, It has been Windows 8 since then. I need to use Linux OS (CentOS) for my studies. How can I use Linux and Windows 8 on the same device?
    There are 2 drives; C: 650GB and D: 24GB

    It sounds like a problem of advanced network parameter settings.
    You can start "Interface Configuration Utility", choose the port and select "Edit", then choose "Advanced..." button to have "Advanced Stack Configuration" dialog.
    Change values to:
    T1 0x40000,
    T2 0x40000,
    T3 0x30000,
    Slot Time 5
    Click OK to close "Interface Configuration Utility", and run NI-FBUS CM or Configurator to check whether it helps.
    If you have 3.0 or 3.1 version, you just choose the "Old Default" button to set the values automatically.

  • HP LaserJet 5200 Print Queue Disappears or Won't Print Jobs

    This problem has been ongoing for years, and can usually be overcome by either power-cycling the printer or cancelling the queue and reprinting. I have searched for nearly 6 years for a solution to this, but there was never anything that worked  so we just muddled through it. But for some reason within the past few days has now escalated to the point that the printer won't print at all.
    For starters: we're on Mac 10.8.3. That really shouldn't make much difference, however - as this problem has been around with other computers running older OS as far back as 10.4. Currently, the HP 5200 LaserJet is hooked up to USB (no Jet Direct card) and is shared on the network. No updates have been made (nor are there any available) for 6-9 months at least on the computer or printer. The only consistent part of this issue is that regardless of computer (we have hooked up three of them) the same problem persists at the same workstation (we changed it up today to troubleshoot - see below).
    I have performed the following troubleshooting in the past two days:
    • Installed and re-installed the printer software three times.
    • Reset the printing system in the Print/Fax System Preferences five or six times.
    • Power-cycled the printer, deleted the queue and reprinted approximately 30 times.
    • Turned off printer sharing and turned on printer sharing to no effect either way.
    • Restored the printer to factory settings to no effect.
    • Tried running with the 5200 PPD and a Generic PS Printer PPD, no effect either way.
    • Hooked the printer up directly to the computer and through a powered USB hub, no effect either way.
    • Hooked up four different USB cables, two of which are from computers using printers that are not experiencing any connectivity issues.
    • In the HP Utility, when hooked up direct via USB, the Service ID, FW Version, Serial and Product numbers come up as 'unknown'
    • In the HP Utility, when hooked up via sharing the HP Utility will not work at all with the printer.
    Most of the time I get the error of "Printing-Waiting for printer to become available" when sending a document. It doesn't matter if I send it from TextEdit, Safari, Chrome, or any Adobe program - it doesn't print.
    Sometimes the document will act as if it's printing, and the light on the printer blinks - then it disappears without printing. The Print Log from the printer does not show anything being printed.
    Prior to this new problem, we had an older 5200 printing exhibiting the same escalated issues. When I went to upgrade the firmware (Firmware date code of 20090716), the computer and printer lost connectivity and the formatter board became damaged. HP replaced our printer with another 5200 - which is now exhibiting the same issues. The new printer carries a Firmware date code of 20071017.
    So, under these similar circumstances, upgrading the firmware is not an option as I don't think I can upload to the printer without losing the connection and damaging the formatter board again.
    At this point, the printer simply won't print regardless of what I do.
    I have moved the printer to another Mac using 10.6.8 and it is currently printing, but that is only a temporary fix. Edit: 3.5 hours later, the printer is exhibiting the same issues, and I am currently SOL on printing anything again.
    Any help or suggestions would be appreciated.

    Thanks for replying - I was able to print a configuration page from the printer. I am not sure how to send text directly to the printer (assuming you mean by bypassing the print command window) - if someone has this info for a Mac, I can give it a try.
    Additionally, I forgot to report the troubleshooting using the HP Utility (which made me think of when dansdaduk suggested printing directly to the printer):
    • When hooked up direct via USB, the Service ID, FW Version, Serial and Product numbers come up as 'unknown'
    • When hooked up via sharing the HP Utility will not work at all with the printer.
    For a long while, I thought it may be something with the printer, but I believe it has to do with a USB connection conflicting in some way on the Mac OS, especially considering that we have had two printers manufactured at two different intervals across several years exhibiting the same issues. It's the only constant that remains, even when hooked up directly and not shared, or hooked up and shared across different computers regardless of the OS.

  • Cannot clear a document from printer queue, and it is preventing printing, i have rebooted

    HP G72 notebook printer
    Wifi networked to Lexmark Pro 205 printer
    I have a document which is stuck in the print queue and will not cancel and remove. I have rebooted the computer three times, the printer three times and the network. It is blocking printing by the printer.
    How do I remove and clear the queue?

    Hi this might work as well
    1. Click start and go to the control panel and next go to printers.
    2. Doubleclick your printer icon.
    3. In the new screen click on the word printer in the top left corner en set a check mark with "use printer offline".
    4. Disconnect the unit from the computer.
    5. Click on the word printer again in the top left corner and choose "cancel all printjobs". Wait until this happens.
    6. If this not happens restart your computer and check if the printjob is gone now. If it does happen skip step 6.
    7. If the printjob is gone reconnect your printer and click printer in the top left corner again and remove the check mark with "use printer offline".
    8. Try printing.
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Although I work for HP my posts and replies are my own
    Please mark the post that solves your problem as "Accepted Solution"

  • Print Queue closing after initiating a print

    Hello,
    I have a LaserJet 3030 connected via a network to OS X. When I initiate a print, the icon of the 3030 comes into my dock and the item does print. The issue is that the icon stays open and does not close automatically, exactly how it would work on a PC. I want the "Print Queue" to close automatically. Does anyone know how to change this?
    Thanks.

    He's talking about the printer's icon in the dock, and I've found this setting to be less than entirely reliable; at least when dealing with HPs.

  • OPEN PRINT QUEUE DOES NOT WORK IN 'PRINT

    When I press "Open Print Queue" nothing happens except the dialog box dims. No print queue is displayed.

    Hi, is that pronter printing at all?
    Mac OS X: About the Reset Printing System feature ...
    http://support.apple.com/kb/HT1341?viewlocale=en_US
    10.5/10.6/10.7/10.8 instructions...
    In System Preferences>Fax & Print, Right click or Control+click on the Printers list Sidebar, choose Reset Printing System.
    if you hold option and click the "-" tab it resets the printing system.
    http://www.macosxhints.com/article.php?story=20031215144430486
    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions.
    Any devices that previously appeared in your Printer List and Fax List will need to be added again after resetting the printing system.
    Resetting the printing system in Mac OS X 10.5.x+++
        1.    To use the Reset Printing System feature in Mac OS X 10.5.x, follow these steps:
        2.    Choose System Preferences from the Apple menu.
        3.    Choose Print & Fax from the View menu.
        4.    Control-click on list of printers on the left side of the window, then choose "Reset printing system" from the contextual menu. If you don't see a list of printers, Control-click on the text "Click + to add a printer or fax" and select "Reset printing system..." 
   
  As an alternative, if you currently have one or more printers listed, you can Option-click the "-" (Remove printer) button.
    http://support.apple.com/kb/ht1341
    Reboot.

  • Wireless printing to an HP PSC 1310 Series from Windows 8 using Airport Express

    Can someone point me to instructions for setting up wireless printing (to an HP PSC 1315) from Windows 8 using an Airport Express?  I have a Dell XPS 14z laptop running Windows 8 on which I've installed Bonjour Print Services and an Airport Express (AE) supporting 802.11n.  The laptop successfully uses the AE network to get on the internet, but Bonjour does not display any printers.   I also have a Macbook Air that is able to print wirelessly to the HP PSC 1315, so I know it works.  The problem appears to be with Bonjour, but I'm not certain.  I've tried it with and without the 1315 added as a local printer in the Control Panel.  Still no luck.
    I had this same setup with a prior Windows XP laptop and an 802.11g AE, but alas can't get back there with the "new/better" technology.
    Please help.
    Steve

    Hello rldegier. Welcome to the Apple Discussions!
    See if either of these two articles will help:
    o Printing to an AirPort Extreme / Express Base Station or Time Capsule from Windows XP
    o Printing from a Windows XP PC to a printer attached to an Airport Extreme Base Station or Airport Express

  • I have items listed as "pending" in my print queue online but nothing is printing.

    i have sent multiple items to print and whilst they are sitting in my print queue marked as "pending" nothing is printing. the printer is on and having run a wireless report all seems fine. what am i missing??

    Hi daws78,
    If a print job is in the pending status, it could mean there's an issue with the printer itself (paper jam, low ink levels, etc.).  Double check to make sure there are no alerts like these on the printer.  If not, then you can try resetting the printer's connection with these steps:
    1.  Unplug your router.
    2.  Unplug the printer (without turning it off first).
    3.  After about 60 seconds, plug in the router and once it's ready, plug in the printer.
    Let me know if the print jobs are still pending after you've done this.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

Maybe you are looking for

  • How to View the Doc Types display along with description

    Hi All    In ME21N transaction in Doc type tab, only description is appearing, i want that along with technical names, for example  li"NB-Standard Purchase Order", like this, so what settings to be done? Rgds Ramesh

  • Report not found in REPORTS_PATH

    I am trying to run a report from a form, but the report is not being found, even though the path where the report is located is in the REPORTS_PATH in both the default.env file and the registry. The only way the report runs is if I include the path i

  • How to check Created directories in Oracle 10g

    Actuall i created a directory CREATE OR REPLACE DIRECTORY DIR_TEXTFILES AS 'D:\TEXTFILES'; but i can such directories in d:\ of my laptop as a beginner to oracle i dont know these thing....Pls Experts help me...

  • I get this repeatedly:

    Your activation is still pending. You will receive an email notification once your activation is complete. We're sorry. There was a problem connecting to the server. Please try again later. I'm suspecting the servers are just busy, but I'm ready to g

  • How to create a file on a remote machine using PrintStream

    I want to create an HTML file on a remote machine connect via LAN the path is "\\vineet\akh\" akh is folder where I want to save the HTML file. Now in PrintStream i can give only a local file. Please help how to do it