Printing report oracle10g at client side through form

Report Mode : CHARACTER.
I am running report through oracle10g from in browser based environment from client machine.
My application server running that form. My code is following for setting the report destination type:
IF :B01.S_REPORT_TO = 'S' THEN
SET_REPORT_OBJECT_PROPERTY(REP_ID,REPORT_DESTYPE,CACHE);
ELSIF :B01.S_REPORT_TO = 'P' THEN
SET_REPORT_OBJECT_PROPERTY(REP_ID,REPORT_DESTYPE,PRINTER);
ELSIF :B01.S_REPORT_TO = 'F' THEN
     SET_REPORT_OBJECT_PROPERTY(REP_ID,REPORT_DESTYPE,FILE);
SET_REPORT_OBJECT_PROPERTY(REP_ID,REPORT_DESNAME,'c:\temp\abc.txt');
END IF;
vrep := RUN_REPORT_OBJECT (vrepid,PRAM_ID);
web.show_document( 'http://servername:port/reports/rwservlet/getjobid'||
SUBSTR (vrep, INSTR (vrep, '_', -1) + 1)|| '?'|| 'server=REPserver','_blank');
But when i am using destype as print , the report output is directed to Application Server's printer and not in clinet computer's printer. as well as detination type is file , then specified file is stored in Application Server and not in client machine.
HOW CAN I PRINT REPORT DIRECTLY AT DEFAULT PRINTER OF CLIENT COMPUTER OR SAVE THE FILE AT CLIENT COMPUTER'S HARDDISK

Lionel wrote:
Java bean is not supported anymore !
[http://fdegrelle.over-blog.com/article-22717699.html|
I strongly suggest that you read the article carefully and understand it it before you start spreading unverified rumors and mislead people.
The article you pointed out in your post is a [url http://en.wikipedia.org/wiki/Disclaimer]Disclaimer wrote by the author of the Java Beans/PJCs found on that site.
I will try to explain to you what Francois, the author of the site is trying to tell you in that Article and I'll be more than happy if Francois corrects me when I'm wrong.
The article is clearly stating;
Quoting the article:
This material, these articles do not come from Oracle, have nothing to do with Oracle and are certainly not taken into account by the Oracle support.
This mean's that the material pointed and the articles are not made, distributed or related to Oracle Corp. and "Oracle Support" will not help you if you have any questions or clarifications about these articles and/or materials. And the only person(s) will help you with them is the person(s) who wrote them and they are not from Oracle and if you have any questions you should ask send it to the e-mail address found on the homepage and not Oracle.
This does not mean by any scope or dimension or by any mean that Java Beans are not supported to be used with Oracle Forms.
Java Beans ARE supported to be used with Oracle Forms and in the next release Java has more integration with Forms.
Francois, please correct me If I'm wrong.
Thanks
Regards
Tony

Similar Messages

  • Printing web page at client side

    i want to print web page at client side . Page & printer settings are through coding. i tried using
    DocFlavor myFormat = new DocFlavor("text/plain; charset=utf-16be","java.net.URL");
    i found exception invalid flavor

    If you are trying to print a web page on the client side, you have to use the browser's print function which can be invoked through JavaScript. What you are trying to do can't possibly work. Even if you weren't getting an exception, it wouldn't work. Any Java code in the JSP will have no effect on what happens on the client's machine.

  • 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

  • Jasper Report preview in client side

    Hi Friends;
    I use Jasper report 1.3.1 with jdeveloper 10.1.3.1.I print my report in server side but in client side it doesnt preview.When client press show button ,report open in server.How can I show my jasper reports in client side??Thank for all......

    Generate the report in a folder and Refresh the folder to display the report.
    http://www.regdeveloper.co.uk/2006/10/24/jasperreports_tutorial/

  • How to view the pdf files stored in client side using  forms 10g

    Hi All,
    I am using webutil to upload and download the blobs from database. I susccessfully uploaded/downloaded the blobs from database to client(d:\temp.one.pdf)
    Now I want to view the download pdf through form.
    Can anyone help me regarding this?

    I have tested the sql and found that there are no records in the table in which iam uploading the file
    In the form, I am joing tow tables mapping with rpt_num
    Even after adding information for the image table like image_no,image_name and
    when i click on upload to db icon. it gives me the same error WUT-113
    I think I need to save this basic information first and then upload the file
    can you please advise where can i add this code to save the data first
    below is the code iam using to upload the file from database
    PROCEDURE UPLOAD_DB IS
    l_success boolean;
    BEGIN
    l_success := webutil_file_transfer.Client_To_DB_with_progress
    (clientFile => :images.file_name
    ,tableName => images'
    ,columnName => 'RPT_IMAGE'
    ,whereClause => 'RPT_NUM = ''' || :PVT.PVT_SA_RPT_NUM || ''''
    ,progressTitle => 'Upload to Database in progress'
    ,progressSubTitle=> 'Please wait'
    ,asynchronous => false
    ,callbackTrigger => null
    if l_success
    then
    message('File uploaded successfully into the Database');
    else
    message('File upload to Database failed');
    end if;
    exception
         when others
         then
         message('File upload failed: '||sqlerrm);
    END;

  • Any ideas on how to re-sort report data on client side

    Hi,
    Could anybody provide any ideas on what technologies I should
    apply to enable user to re-sort the data of a report on client
    side browser.
    Thanks
    JC

    Hi,
    if you create a frameset, this could have a javascript array
    containing your result set.
    Then when the frameset is loaded it could populate its own
    single frame with the contents of the array (the initially
    sorted rows of the report).
    Now by some trigger (e.g. clicking on the heading) you could
    tell the javascript in the frameset to resort the data array,
    ordering by the column clicked on. Then send a call to the
    function that populates the frame with the contents of the array.
    This should do what you want, but it is not really a Portal
    solution as the report would have to be a procedure in PL/SQL
    rather than a 'proper' Portal report.
    If I get time I will create an example using the SCOTT.EMP table.
    Regards Michael

  • Form2email - cgi2email question (client side only forms sent via email?)

    I am being asked to design a standard questionnaire form.
    They want
    the answers to the form be emailed.
    However, they host their own pages on a microsoft-based
    server that
    has no perl library, VB library, etc.
    Is there a way to do a form and generate an email totally on
    the
    client side with no server based application needed
    whatsoever?
    Thanks,
    -Dan

    You can create a simple mailto: link on the form that will
    invoke the client
    mail program but it is not that reliable. However if they are
    hosting using
    IIS it does have built in mail capability via CDO using an
    ASP page, or it
    can be set up to run ASP.Net with its mail handling scripts.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Canned Heat" <[email protected]> wrote in message
    news:[email protected]..
    >I am being asked to design a standard questionnaire form.
    They want
    > the answers to the form be emailed.
    >
    > However, they host their own pages on a microsoft-based
    server that
    > has no perl library, VB library, etc.
    >
    > Is there a way to do a form and generate an email
    totally on the
    > client side with no server based application needed
    whatsoever?
    >
    > Thanks,
    > -Dan
    >

  • Register dll on client side through applet

    hi
    can any on e tell how to register a dll on client side from a signed applet.
    thanx

    I am not very sure. But you can try this:
    public class Dialup {
    public static void main(String[] args) throws Exception {
    Process p = Runtime.getRuntime().exec("register_dll.bat");
    p.waitFor();
    System.out.println("Done.");
    where register_dll.bat is your dll registration (regsvr x.dll)
    Let me know if this works
    Adina

  • How to Print Crystal Report without any dialog message on the client side

    Hi!
    I've read too much questions like this, but i can't find any answer.
    How can i print a report on the client side directly?
    I have three buttons, "Generate Report", "Generate PDF", "Print".
    I want when the "Print" button was clicked, automaticaly the report is printed using default printer, like PrintToPrinter function, but in the client side.
    Thanks!

    If you search for previous posts about this, you will see many posts saying not possible.  If this functionality was possible, you could essentially have a page that would send something to a clients printer just by visiting the page, how bad of security hole would that be?

  • Crystal report: client-side printing problem

    Hello everyone,
    I developed an asp.net web application / c # - VS2012 - crystal Repport (CRforVS_13_0_5) on windows 7 pro 32 bits, everything is ok even print reports.
    The problem is that when hosting the web application in IIS on the same machine (Windows 7 pro 32 bit) printing the report (crystal report) does not work;
    my code behind:
    ReportDocument cryRpt = new ReportDocument;
      string path = "../rpt/demande.rpt";
      cryRpt.Load(Server.MapPath(@path));
      ParameterFieldDefinitions crParameterFieldDefinitions;
      ParameterFieldDefinition crParameterFieldDefinition;
      ParameterValues crParameterValues = new ParameterValues();
      ParameterDiscreteValue crParameterDiscreteValue = new ParameterDiscreteValue();
      crParameterDiscreteValue.Value = "value";
      crParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFields;
      crParameterFieldDefinition = crParameterFieldDefinitions["val"];
      crParameterValues = crParameterFieldDefinition.CurrentValues;
      crParameterValues.Clear();
      crParameterValues.Add(crParameterDiscreteValue);
      crParameterFieldDefinition.ApplyCurrentValues(crParameterValues);
      cryRpt.SetDatabaseLogon(user, pw);
      CrystalReportViewer1.Visible = true;
      CrystalReportViewer1.ReportSource = cryRpt;
      cryRpt.PrintToPrinter(1, false, 0, 0);
    how to print the report on the client side?

    The search term 'crystal net client side print' brings up the following (amongst many other):
    KBA: 1214466 - How to print a report from a .NET Web application
    KBA: 1216932 - How to print directly to a printer instead of PDF in a CR 10 ASP.NET application
    KBA: 1983821 - How to achieve client side printing without using the Crystal Reports viewer
    The above should help you out. BTW.; the search box is in the top right corner.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Problem in downloading a file from AS to client through form using webutil

    I am running oracle 10g sever & devloper 10g in the same machine. Almost every thing is working properly from a client PC in the network except the following aspect :-
    From client pc, through form, I have created one export(dmp file) which is being saved in the AS. Now I want this file to be downloaded from AS to this client PC.
    I have tried webutil_file.copy_file(server_filename,client_copy_name) which is not working. the error trace file says "Unable to open source file in server" & "Unable to read WebUtil configuration file".
    I have also tried webutil_file_transfer.AS_to_Client_with_progress
    which results in unsuccessful from server to client.
    I modified the webutil.cfg file as :=
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.accessControl=FALSE
    transfer.appsrv.workAreaRoot=D:\temp
    transfer.appsrv.read.1=D:\temp
    transfer.appsrv.write.1=D:\temp
    Please help me out from this situation

    hi
    Welcome to OTN.
    try to use.
    Client_host()sarah

  • BO XI R2 - "Blank "Crystal Reports Viewer" window - attempt to print report

    My company recently set up a Business Object Enterprise XI Release 2 server.  On the server are a number of crystal reports that are run interactively by users, through the user console.  The expectation is that the user will log on to the BI server, click on the report title, enter the parameters, see a preview of the report in the Crystal Report Viewer, then click the print icon on the Crystal Report Viewer toolbar.
    Our corporate standard is current Windows XP SP3, with Internet Explorer 8;  By default, users are set up to use the DHTML report viewer.  The reports were developed with the Crystal Reports XI R2 report designer, and connect to an Oracle 10g database through Oracle client.
    When users attempt to view, then print the reports, the user is able to select the report, enter the parameters, view the report data, and even page through the report preview with no issues.  However, when the user attempts to print the report by clicking the print icon on the Crystal Reports Viewer toolbar, a blank "Crystal Reports Viewer" window pops up and remains indefinitely.
    The really puzzling thing about this issue is that for about 1/3 of our users, printing will work - a print dialog will appear, allowing the user to select a printer, and when the user clicks OK, the report will print.   For the other 2/3 of our users, the blank "Crystal Reports Viewer" window pops up.
    I have added the BO XI R2 server's address to trusted sites, adopted the lowest security settings for trusted sites, and enabled all activity I could think of in IE security settings (ActiveX controls-related).  I also ran the web site in compatibilitiy mode.
    Has anyone on this forum experienced this issue, and does anyone here know how to resolve it?
    Thank you,
    Bob Gardner

    I suspect that this behavior occurs because the client computer is unable to download ActiveX controls.
    The report viewer requires the PrintControl.dll to print reports from the client computer. The PrintControl.dll downloads automatically if it has not been previously downloaded on to the client computer, provided that the user that is currently logged on is able to download ActiveX controls.
    To enable the download of ActiveX controls on the client computer, perform the following steps:
    1) Open your Internet Explorer.
    2) From the Tools menu, select Internet Options.
    3) In the Security tab, select the web content zone that corresponds to your web application.
    4) Click Custom Level.
    5) In the Security Settings dialog box, scroll down to find the ActiveX controls and plug-ins section.
    6) Select Enable or Prompt for the Download signed ActiveX controls item.
    7) The print dialog box will now appear successfully when clicking the print button in the report viewer.
    If the above does not help, try to troubleshoot this as follows:
    1) click the print button (this will cause a postback to the web page) and then cancel the print dialog. right-click in the web page and select "View Source".
    2) Search for the word "printcontrol.cab". This will show you where the application is trying to download the printcontrol from.
    Paste the URL into a browser.
    3) If you get prompted to "open or save to disk" the url is correct and there is a browser setting or possibly even a system policy preventing the download.
    4) If you get a "404 page not found" or a similar error message, investigate the URL.
    5) If the issue is on your local web server, see if it is possible to browse to the URL in IIS manager.
    - Ludek

  • Opening an EXCEL on client side

    Hi,
    I have an "EXCEL" file on server side and I need to open or save it on client side through jsp. How can I achieve this.
    If anyone knows please give me a reply on, how to open a server side EXCEL file on client side.
    Thank you.

    Thanks for your reply.
    I tried with this also, but it is not working.The code I gave should just work. You're the first one who said that it doesn't. Probably you changed one bit too much or are doing other things wrong.
    Here is the code:
    http://forum.java.sun.com/thread.jspa?threadID=5205333&tstart=0
    That's poor coding. This won't work in all clients (the contentlength is missing), this may perform slow (no memory buffering used), this is not reuseable (filepath and filename are hardcoded), this won't work in UNIX environments (c:, what is that?), you're leaking resources by not closing the streams and finally the exception trace is suppressed (bad practice).

  • Print report to client printer from forms

    Hi,
    I need to print a report directly to a client printer.
    There is a utility called ORARRP - Oracle Reports Remote Printing Utility.
    But the document I saw was from Oct 2001 - so is this still the only and best option ?
    I'm using RUN_REPORT_OBJECT in forms to launch the report.
    This works fine when the DESTYPE is FILE and DESNAME = PDF
    The PDF-outputt is then successfully shown with WEB.SHOW_DOCUMENT
    When changing DESTYPE to PRINTER and DESNAME to clients printername then report won't run. "Report filed with error message TERMINATED_WITH_ ERROR".
    Is it possible to print directly to a client printer using RUN_REPORT_OBJECT ?
    (Our client printers are not networkprinters)
    Environment:
    Forms [32 Bit] version 9.0.4.0.19
    Report Builder 9.0.4.0.33
    Reportsserver on linux
    Thanks !
    Sam

    (Our client printers are not networkprinters)This means you cannot print from the server directly on the client printer with destype=printer, since the server cannot see the printer.
    So, a manual print command by the user from the browser or the orarrp utility are your options.

  • Crystal report printing in client side

    Hi ...
    I have using asp.net web app with crystal report version 10.5.3700.0
    I have uploaded the project and database in the below link. Check out.
    http://www.2shared.com/file/vHTSGl13/ASPnet_Webapp_using_CR_Rpt_Pri.html
    http://i52.tinypic.com/2rdds7d.jpg
    I have few requirement in the crytsal report asp,net page:-
    1) If user click Print button of crystal report viewer toolbar then it goes to PDf then its show me all of my pages instead of showing me the current page on which i click print.
    2) I want to use client side print..if user click on a my print button then i need to show print dailogue like image above in that if user click print then i need to print that current page.. let us consider im viewing I3 Invoice number using Crysatl report viewer Navagition then it show me as 3/7 in toolbar if user click on my print button then i need to print the page 3 only.. coz user clicked print on Page3.
    3)My asp.net web app is in Hosting server if user click my print button then i need to show client print dailogue and it will show my cleint connected printer. Here crytsal report toolbar and other things should be hide. It should be like what we have designed in crystal report that alone should be get printed.
    4) One more thing i want is if user gives I4 invoice no. in my textbox1 then click view report button then it will show that Invoice Report now its shows two pages, here if user click print then i need to print two pages coz it has two pages...
    Please do a code using my webapp which is above and waiitng for your codes..
    Thank you
    Note: please do a code so that i can know, i already visited some of the website like http://aspalliance.com/ i didt undertstand how to do so im posting here to get a code.

    *i tried this also but it show me the same only hosting server printer not a client side printer*
    if (System.Drawing.Printing.PrinterSettings.InstalledPrinters.Count > 0)
                foreach (String myPrinter in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
                    cboCurrentPrinters.Items.Add(myPrinter);
                cboCurrentPrinters.SelectedIndex = 0;
            //For printers exposed to System account as per MS Kbase
            //http://support.microsoft.com/default.aspx?scid=kb;en-us;184291
            //Look to HKEY_USERS\.Default\Software\Microsoft\Windows NT\CurrentVersion\Devices
            Microsoft.Win32.RegistryKey mySystemPrinters =
                    Microsoft.Win32.Registry.Users.OpenSubKey(@".DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Devices");
            foreach (String defaultPrinters in mySystemPrinters.GetValueNames())
                cboDefaultPrinters.Items.Add(defaultPrinters);
            if (cboDefaultPrinters.Items.Count > 0)
                cboDefaultPrinters.SelectedIndex = 0;
    help me in this.. its very urgent needed..

Maybe you are looking for