Print text file to  client side printer

Hi all,
I have a character mode report which will print to a client side dot matrix printer in 6i. After converted to 10g, we cannot print to the client side printer (because we don't want to map so many print queue from the AS).
So, I try to generate the report to a text file, then use webutil to transfer the txt file to the client PC, and then use Client_HOST to call the window PRINT command to print the text file to the client side printer.
I have test this is successful, however, when I try to do the same thing to a report with Vietnam character, then it is not.
The print request is sent to the printer, but the printer have no response.
But that file can be print successfully if I open in Notepad and then print manually.
I try to use window TYPE command and COPY command, but still have no luck.
Can anyone give me some suggestions for this....
Thanks!

Qiu (guest) wrote:
: In the browser/applet, the default "print" button can only
print
: screen to local printer, not the data I want. Use Report
server,
: I can't directly print to client side printer. Is there a way
to
: print data to local printer after press a button?
Are u using Run_Product function in the when button pressed,
then u can specify the format in which u want the output, option
available are HTML and PDF, report server runs the report on the
server and sends the output to the client machine. On the client
machine u have to open the file and print it. I cannot print the
report itself on the client machine.
Try.
Sailesh
null

Similar Messages

  • Not able to create a text file in Client Machine using Forms 10g

    Hi - I'm mot able to create a text file in Client Machine using Forms 10g. I'm getting error when system executes the bolded line.(i.e. CLIENT_TEXT_IO.FOPEN). During run-time system is throwing "ORA-06508: PL/SQL: could not find program unit being called".
    I had attached webutil.pll in the form.
    Please advise me.
    DECLARE
    l_Temp CLIENT_TEXT_IO.FILE_TYPE;
    LC$Name Varchar2(100) ;
    LC$Fic Varchar2(100) ;
    LN$Lines Pls_integer := 0 ;
    LC$Line Varchar2(4000) ;
    Cursor C_CUR Is
    Select * From TEST_TEXTIO where rownum <= 50;
    BEGIN
    LC$Name := 'tmp_file.txt' ;
    LC$Fic := 'c:\temp\tmp_file.txt';
    Begin
    l_temp := CLIENT_TEXT_IO.FOPEN( 'C:\temp\tmp_file.txt', 'W');
    Exception
         when others then
         message( 'OPEN FILE ERROR ' || LC$Fic ||sqlerrm );
         display_error;
         raise form_trigger_failure;
    End ;
    -- Write the lines --
    For Cur In C_CUR Loop
         LC$Line := Cur.CODE || ' -> ' || Cur.COL1 || ',' || Cur.COL2 || ',' || Cur.Col3 ;
         CLIENT_TEXT_IO.PUT_LINE( LF$File, LC$Line ) ;      
         LN$Lines := C_CUR%ROWCOUNT ;
    End loop ;
    -- Close the file --
    CLIENT_TEXT_IO.FCLOSE( LF$File ) ;
    Exception
         When others Then
    message('err='||sqlerrm);message(' ');
    display_error;
    CLIENT_TEXT_IO.FCLOSE( LF$File ) ;      
         Raise ;
    END;
    Thanks.
    Arun

    Hi ,
    i have one Question though its not related to thos question if some could help me it will be really helpful,
    i have created one program to import and export excel to forms vice versa, if the form is attached with webutil its working fine am using ole2.but i have a new idea if i add this program in menu, it can be used for all the forms attched to that menu, i made program also, but problem am facing right now is if the form is not attched with webutil it will not work so is there possiblity to share my webutil from one form to another form ,so i will keep one form as a interface form in that webutil will be attched ,i can share that webutil to all other forms so that all the forms no need to attach webutil again
    if its possible means please suggest some ideas

  • Load data from File on Client side (via Sqlplus)

    Server OS: RedHat, Oracle 10g rel 2.
    I am trying to load data from OS .txt files to clob field.
    I am able to do this successfully using:
    Oracle DIRECTORY
    BFILE
    DBMS_LOB.loadclobfromfile packageIssue is: this only works if my files and DIR are on database server.
    Is it not possible "load clob from file" from client side, files being on client and exec command via SQLPlus. Is there any other option to load data from client side.
    Thanks for any help.

    Options:
    1) Search for OraDAV
    2) Learn about Application Express.

  • How to read and write Xml file at client side using JavaScript !

    Hello,
    i am new to javascript.
    I have requirement to read and update XML file at client side.
    Will you please guide what could be the best way to read and update XMl file using javascript.
    Thanks,
    Zuned

    This is a Java forum,not a Javascript forum. Maybe you should ask here [http://www.webdeveloper.com/forum/forumdisplay.php?forumid=3&s|http://www.webdeveloper.com/forum/forumdisplay.php?forumid=3&s].

  • Write a text file on client

    I want to realise an applet which can write a text file on client. I use java 2 and an certified applet.
    I'm searching a script.
    If you have a solution or a script thank you.
    A+
    Ps: I'm french and sorry for my english

    FileOutputStream fos = new FileOutputStream(filname);
    DataOutputStream dos = new DataOutputStream(fos);
    try {
    dos.writeBytes("some string");
    } catch (Exception e) {
    out.println(e.toString());
    dos.close();
    fos.close();

  • Merging randomly-named XML data file on client-side with pdf designed in Livecycle 7.0 (and addition

    Okay, as a heads up I work for a financial institution and we are converting our legacy "jetforms" to pdf format. I have in my staff for the project, 2 code developers and myself- a form designer. We have currently spent 2 months in trial and error attempting to resolve this problem, please let us know anything you can have. All client-side (internal) machines are running Windows XP and Adobe Reader 7.0.7
    The software we use as a financial institution allows our users to export a customer's data file onto their machine which is then renamed to include the member's account number and first and last name for our staff to determine which data file they need more accurately. In legacy jetforms, we have developed a program that pushes the data from the customers file that they select, into the jetform that they want to open and the matching fields in the data file fill in the fields of the jetform. Clean and simple.
    Now, i have hit nothing but frustration when attempting to perform the same process with pdfs using a form designed in livecycle designer 7. First, i see no obvious command for opening a pdf and importing a data file using a command line, like pdfmerge or something of the sort in which an xml data file can be specified and a pdf can be specified. I saw something like it using an fdf format and attempted to do this but apparently reader cannot import the data into the pdf that was designed adobe livecycle 7. All i have been seeing is database connections and using javascript inside the form to populate fields based on these database connections, etc. etc. or doing a manual file>import data>etc. which we don't want to have our staff do. We do not have reader extensions enabled, simply because i cannot get an adobe representative to call me and discuss pricing nor see any estimated pricing chart around. I don't know if reader extensions are necessary for this or not but i'm becoming very very frustrated with it.
    We don't want a complex server-side data connection binding with dynamic input. No, we just want it where our developers can say "if this data file is selected, and this pdf form is selected run this command" which would be a simple pdfmerge type solution. Is this possible or do i need to stay with jetforms until our software the billion dollar financial institution uses does form building inside its own application? I don't want to fight about who is better, what version to use, etc. I just want the straight up honest truth. If you need to know the pricing that the reader extensions would have to go by, assume there will be 500 client computers that will need to use it.

    From your post it sounds like you are Central Pro (a product for which I am by no means an expert), but you say you want to upgrade to a newer product from your "legacy" one. Is there a reason for this? Have your requirements change so that it no longer fits them? Central is still in the current Adobe roster and as far as I know there is no plans to get rid of it any time soon, so if it does everything you want I don't see why you would want to change.
    There is no product in the LiveCycle suite that merges xml data into a form from the command line. LiveCycle (with the exception of Designer) is a suite of server products, so the closest you would come is LiveCycle Forms (merge the xml and create a fillable PDF) or LiveCycle Print (merge the xml and print the form).
    Hope this helps somewhat.
    Chris
    Adobe Enterprise Developer Support

  • Creation of Text File on Client Machine

    I am using Oracle 11i EBS and I have a requirement to create a text file on the client's machine. The name of the file is suppose to be on a particular format (DDMMYY.TXT). It is an urgent requirement from our client and we need to go live in 3 days. Kindly helP me out.
    Regards

    Hi Hussain,
    I need to extract data from Oracle Applications table and then this data had to export in text file. User wants to do this through Oracle application front end. If you want more detail please let me know.
    Thanks

  • Download a text file to client machine

    Hello everyone,
    I'm trying to implement a report in EP6 SP2 version using Dynpage. I have it working perfectly, where in it displays the result in a Tree Format. But now the client wants a button, on clicking which it should download everything in a text file. I'm thinking of creating a text file and using FileOutputStream dumping the data into a text file. But I dont know how to open that text file or download it to the client machine ?
    Can someone helpme with this ?
    Thanks.

    Another thing you can do is create a table that you can insert the results of the UTL_FILE export. This table will basically track all of your UTL_file exports. You would just have to have three columns in the table. An ID, Filename, Directory. The ID would be your Primary Key, Filename would be the name of the file, and the Directory, would be directory in which the file is in. Then you can build a portal dynamic page that selects the results with a hyperlink. Then everything will work dynamically. Let me know if you have any questions.
    Thanks,
    Martin

  • URGENT: Need to read file on client side from a 9i form

    Hi
    I have developed a 9i form and I assumed I could use TEXT_IO to read a file on the client side and insert the data into a database table. However, I have just tested the form and discovered that TEXT_IO only looks for files on the application server and NOT the client side.
    Does anyone know of a forms package in 9i that will do this for me? Using ftp to get the file onto the application server is not really an option.

    Francois
    We are sure that we do not have the WebUtil package installed in our environment. We are using a thrid party forms 9i application which we can tailor by adding our own forms to the existing menus. The third party application has some upload screens provided that are able to do upload a file without using WebUtil. Is there any other way this could be done? I have asked the third party to provide some asistance with this but they are not too forthcoming. Is there any other way you know of using Oracle/forms that allows a file to be read on the client side and sent to the application server? Oracle logs was mentioned by someone I talked to but this means nothing to me.

  • Write to text file without server side

    Hi,
    I need to write data into a text file for saving data from my
    flash movie, but I didn't have the possibility to use a
    server-side.
    Because my flash movies are stored on a CD and it must be
    compatible with Windows and MacOS.
    Is it possible to write data into a text file?
    If no, can I use a third party software? Which one?
    Regards
    YamNet

    A SharedObject might work for you. Otherwise, you'll need a
    'wrapper' app.
    Adobe's own Director works very well for this, and AIR would
    work as well.
    There are also a good number of 3rd party apps, such as Zinc
    and others.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Can we create export dump files on client side??

    Hi,
    Please see this link
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_overview.htm#i1010293
    Check the "NOTE" which says that
    All Data Pump Export and Import processing, including the reading and writing of dump files, is done on the system (server) selected by the specified database connect string. This means that, for nonprivileged users, the database administrator (DBA) must create directory objects for the Data Pump files that are read and written on that server file system. For privileged users, a default directory object is available
    So does this mean, the dump files can be created only on the server???
    What if i want to create the dump file on my client c:\
    Is it possible??
    As per my knowledge, this was possible in 9i
    Thanks

    Yes in the "orignal" export ,it was possible to have a client side dump file.But the Export DataPump uses the Directory parameter which maps to a directory on the server side only and the option to give an absolute path for the dump file on the client side is removed,the files can be only on server side.
    Aman....

  • Writing and updating XML file on client side

    Hello,
    I'm looking for a simple example which permit to write and
    update a xml file on the client side.
    Someone can help me, please?

    meghashyamgr ,
    Because of security reasons a swf running in a browser cannot
    read or write xml files to a user's computer. What can be done,
    however, is write xml to what is known as a SharedObject.
    SharedObjects act as cookies for Flashplayer.
    If you would like an example of this I'd be more than happy
    to show you...

  • Error Reading setup Intialization file on client side

    Hi Expert,
    When i install the Client setup at client side it's give me the error "Error Reading setup Intialization file".
    I take the setup from the Server B1_shr folder.
    Please reply ASAP.
    Thanks & Regards,
    Tushar Nathwani

    Hi Tushar Nathwani,
    "Error Reading setup Initialization file" implies the setup file is corrupted. You have to find a working copy of it.
    There is no other way around.
    Thanks,
    Gordon

  • Error while sending a text file to client as attachment

    I want to download a file on clicking a button. Here is my button code
    <input type="button" onClick="showdownloadwindow()" value="Download My file">
    The java script showdownloadwindow() should invoke a jsp that has code to construct the text file to be downloaded
    Here is the javascript function
    <script>
         function showdownloadwindow()
              var url = 'http://<%=request.getServerName()%>'+':'+<%=request.getServerPort()%>+'/downloadtextfile.jsp';     
              window.open(url,"","");
    </script>
    the downloadtextfile.jsp looks something like this
    <%
              response.setContentType("text/plain");
              response.setHeader("Content-disposition","attachment; filename=myfile.txt" );
              BufferedOutputStream bos = new BufferedOutputStream(response.getOutputStream());
              String temp="Put some text string for now";
              bos.write(temp.getBytes());
              bos.flush();
              bos.close();
              response.flushBuffer();
    %>
    i have two problems
    1. when the button "Download My file" is clicked a separate window is opened and then the save file dialog box appears. How can I change my code
    so that it only shows download window only ( not another browser window)
    2. myfile.txt contains some error in addition to the temp string
    Here is the error from myfile.txt
    <BR><H3>Original Exception: </H3>
    <B>Error Message: </B>SRVE0199E: OutputStream already obtained<BR>
    <B>Error Code: </B>500<BR>
    <B>Target Servlet: </B>/downloadtextfile.jsp<BR>
    <B>Error Stack: </B><BR>
    java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained
    <BR>    
         at com.ibm.ws.webcontainer.srt.SRTServletResponse.getWriter&#40;SRTServletResponse.java:467&#41;
    <BR>    
         at org.apache.jasper.runtime.JspWriterImpl.initOut&#40;JspWriterImpl.java:170&#41;
    <BR>    
         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer&#40;JspWriterImpl.java:163&#41;
    <BR>    
         at org.apache.jasper.runtime.PageContextImpl.release&#40;PageContextImpl.java:217&#41;
    <BR>    
         at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext&#40;JspFactoryImpl.java:149&#41;
    <BR>    
         at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext&#40;JspFactoryImpl.java:117&#41;
    <BR>    
         at com.ibm._jsp._downloadtextfile._jspService&#40;_downloadtextfile.java:93&#41;
    <BR>    
         at com.ibm.ws.jsp.runtime.HttpJspBase.service&#40;HttpJspBase.java:88&#41;
    <BR>    

    > Channel FILE_TLE_Sender_SalesOrder_CC: Empty document found - proceed without sending message.
    > Can someone tell me why this error is happening? 
    Maybe your source file is empty?
    This is exact what the error message says.

  • How to browse local files in Client Side and pass to a text item?

    I am writing an Oracle 10g Form to get the path and filename from local PC (Windows XP) by clicking a Command Button, select the folder and files and then pass the full path and the filename to a Text Item.
    Does ORacle10g supports this feature?
    If yes, would this features also work for Linux?

    Hi,
    Check out WebUtil from
    http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
    HTH.
    Regards,
    Arun

Maybe you are looking for

  • WRT150N Call of Duty 4 cannot access game servers

    I have a wrt150n and am trying to play Call of Duty 4, but there are no servers that show up in the list when i try to join multiplayer.  I have tried a few things and Linksys phone support has had me try to forward port 28960.   They had me do this

  • How to install oracle applicatons in a three tier architecture

    Hi, i want to install oracle apps in a three tier architecture? application tier -- middle tier database tier -- database tier Any steps or a meta link document Regards Sudharshan

  • Exporting QT movie to be encoded to Flash

    I need to export FCP projects to be encoded for Flash on another machine. The way I understand it, exporting a self-contained QT movie is the fastest and best export, so that's what I've done. I've saved the QT export (from a Mac) onto a server and o

  • Best practices for nested virtualization

    Can someone please provide best practices when creating Vswitches (ports, port group etc)? Learning vswitches and just want to not over think the process.I don't have networking experience but understand the basics.

  • Iphone and file locations

    Does anyone know how files are laid out on the iPhone? Basically, if build an app that can process an XML file transferred from (I assume) iTunes, how do I look up the file? I've never used iTunes + iPhone, so I'm a little confused on how to find fil