Show_document and destype = file

Hello,
I have a problem with this call:
web.show_document('http://130.45.31.50/dev60cgi/rwcgi60.exe?server=Rep60_PROVA_ORA+report=genrcart.rep+userid=sigma/sigma@dbsvil+destype=file+desname=C:\TEMP\genrcart_130620.rrpp+P MATR=101A18Z1J273+PARAMFORM=NO+COPIA=S','self')
I obtain this message in my browser:
Report output was successfully written to requested destination.
Show_document do not open the file created on the server.
Note: It's very important for me to generate a file because I need to send same special characters to printer using ORARRP.EXE.
Thank you,
P.Guerriero

If you specify destype=file then the file is created but not returned to the browser. to get it you'll need to do one more call to web.show_document to open the specific file that was created.
The other option of course is to use destype=cache and then the output will appear in your browser.

Similar Messages

  • Problem when using WEB.SHOW_DOCUMENT and passing in lexical parameter

    Hi,
    I got a blank page with error "An error has occured while trying to use this document" when I tried to use web.show_document and passing a lexical parameter to 10g report on 10gAS. The URL in the web.show_document is:
    http://<srvname>:<portnum>/reports/rwservlet?server=repserver90&report=myrpt.rdf&destype=Cache&desformat=pdf&userid=<usr>/<pw>@<db>&where_clause=where%20product_type%20in%20('REPORT')
    If I change the desformat to htmlcss, it is fine to display the report. But doesn't work with desformat=pdf. The pdf file has been generated in the cache. Why can't it display on the screen.
    Also I tried to use double quote the value for where_clause. The pdf report showed up. But it ignored the where clause.
    Experts please help.
    Ying

    I use lexical parameters and they work fine, but I use a parameter list. The code is contained in a form that is called by all forms that wish to run a report. This way you only need the logic for printing in a single form. If you want the form, email me at [email protected]

  • Calling a report with web.show_document and put pdf in temp directory

    Hi,
    I need to call a report 10g with web.show_document in order to generate a .pfd file (not viewed by the user) as soon as the user press a button in a form.
    I have two problems. Firstly, after generate .pdf, it's opened a undesirable windows "process succefully" (I don't want that window). Secondly, in url parameter, I put:
    (...)DESTYPE=File&DESFORMAT=pdf&DESNAME=' || client_win_api.get_temp_directory
    the target directory to .pdf file might be the user temporary directory, and not c:\temp, because in Windows XP the user haven't some writing privileges.
    How there is spaces in temporary directory, like:
    C:\Documents and Settings\<user>\Local Configurations\Temp
    I supose that Get_temp_directory returns something that:
    C:\Documen~1\<user>\Local~1\Temp
    And web.show_document don't understand.
    Can anyone help me?
    Thanks a lot,
    medina.

    Hi Maahjoor,
    i have install windows xp on vmware having loop back adapter configure with ip 192.168.10.1.i am using oracle developer 10g suite and oracle 10g r2 database.
    i want to call a report using the following code on a button.i have attached the report to the form.
    i have started the report server by issuing rwserver server=repsrv.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('ALL_EXPENSES');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := RUN_REPORT_OBJECT(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
    WEB.SHOW_DOCUMENT('http://192.168.10.1:8889/reports/rwservlet'||substr(v_rep,'_',-1)+1||'?'||'server=repsrv','_blank');
    ELSE
    Message('Error when running report');
    END IF;
    end;now when i run the command, i get this error
    frm-41214: unable to run the report
    frm-41219: cannot find the report.invalid id.
    argument 1 to builtin run_report_object acnnot be null.
    i thin the problem is with this line. WEB.SHOW_DOCUMENT('http://192.168.10.1:8889/reports/rwservlet'||substr(v_rep,'_',-1)+1||'?'||'server=repsrv','_blank');
    can anyone help? or a better piece of code?>
    I think you are mixing up the web.show_document usage for URL and with RUN_REPORT_OBJECT.
    I hope you have studied this document http://www.oracle.com/technetwork/products/migration/frm10gsrw10g-132606.pdf . It has the required examples and code.
    Cheers,

  • Closing the browser windows created by web.show_document and javascript

    From Forms I am issuing a http request using web.show_document and javascript:window.open(). The http request makes a remote procedure call to a coldfusion component on a JRun appserver. I want this rpc to fire in the background so that the current forms browser window remains as is.
    The logic is as follows
    l_rpcURL := 'http://....just a standard URL.....'; -- edited for this thread
    l_jsURL := 'javascript:window.open("' || l_rpcURL || '","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=no");self.close();';
    WEB.SHOW_DOCUMENT (l_jsURL,'_blank');
    The http request works fine but leaves a browser window behind. It's the one created by the javascript.window.open(). If I remove the self.close() from the javascript then I have two browser windows open, one from web.show_document and the other, as described previously, from the window.open().
    Any idea how I can force closure of the window opened by the window.open() ?
    Thanks

    Hi,
    did this occured afer installing service pack 2?
    A work around is The only solution that is to create a close.html file and calling this file in the code: Web.show_document('http://server:port/close.html','_self');
    <html>
    <body onload="closeit()">
    <script>
    window.close();
    </script>
    </body>
    </html>
    Monica

  • Web.show_document cannot display file with Chinese char in IIS 6

    Dear all,
    There is a problem that web.show_document cannot display file with Chinese char in IIS 6, but works fine in IIS 5.
    Is it a server problem or is there any setting in server? Do you know how to solve it?
    Big Thanks
    JY

    Hi,
    As Francois mentioned, this issue has nothing to do with forms / web.show_document. web.show_document, just opens the URL specified as parameter. So, if you run the URL (that you've passed as argument for web.show_document), directly in the browser, you would be getting the same issue.
    So, as you said, if it works fine in IIS 5 and does not in IIS 6, it would be an issue with the IIS and not forms. You might want to check out the IIS 6 release notes / documentation for any known issues / raise an issue in that.
    -Arun

  • Generating Postscript file using (psl132.prt) and Text file in one go

    Actually my requirement is to have soft copy , postscript files in a single shot for character mode report because the report fetches data from the table then deletes the data.
    - I am able to generate softcopy, and postscript files same using distribution file for Bitmap report as shown below :-
    [RWRUN REPORT=C:\Report\R_TEST.RDF userid = test / test @ test DISTRIBUTE=YES DESTINATION=C:\Report\bRep.dst   ERRFILE=C:\Report\Final\report.err
    The brep.dst file for bitmap report is as follows:-
    DEST1: DESNAME=C:\Report\tpdf.pdf DESTYPE=File DESFORMAT=PDF COPIES=1 LEVEL=Report
    DEST2: DESNAME=C:\Report\test.prn DESTYPE=File DESFORMAT=BITMAP COPIES=1 LEVEL=Report
    But in case of Char mode report i am able to generate text file but i am unable to generate postscript file for using printer definition file. The commands used are as follows :-
    RWRUN REPORT=C:\Report\R_TEST.RDF userid = test / test  @ test DISTRIBUTE=YES MODE=CHARACTER   DESTINATION=C:\Reports\cRep.dst ERRFILE=C:\Report\Final\report.err
    The crep.dst file for char report is as follows :-
    DEST1: DESNAME=C:\Report\tpdf.text  DESTYPE=File DESFORMAT=ASCII   COPIES=1 LEVEL=Report
    DEST2: DESNAME=C:\Report\test.prn  DESTYPE=File DESFORMAT=prt132.prn COPIES=1 LEVEL=Report  (This option does not work is there any work around to make it work) ]
    I am getting an error. it there any work around for this or there is any other solution.
    Is there any other way i convert my text file to postscript file or viceversa...thanks

    Hi,
    Peter Gjelstrup wrote:
    Next thing is how to use it:
    declare
    k_file constant varchar2(30) := 'YourFile.xls'
    begin
    create_file(k_file);
    -- Call other procedures
    close_file;
    end;
    Don't forget: these procedures are all part of the gen_xl_xml package.
    To call them from outside the package, you have to prefix each procedure name with the package name, like this:
    declare
    k_file constant varchar2(30) := 'YourFile.xls'
    begin
    gen_xl_xml.create_file(k_file);
    -- Call other procedures
    gen_xl_xml.close_file;
    end;

  • Destype=file

    I am able to run a *.rdf report on my 9.0.2 middle tier via rwservlet. I am able to specify destype=file and desname=/whatever/whatever and write anywhere with my report server owning/running account's permissions. This is sort of alarming --- what am I missing? I could find no discussion of this anywhere.

    Hello Mike,
    The issue that you are facing applies in general to any resource that your Reports Server's system account has access to. For example, the printers that a user running a report on your server can print on is determined by the permissions given to the server's account.
    One way to solve this issue in general would be create a seperate user/user group with permissions to access/write to only specific resources (which includes directories, printers etc.) and run the Reports Server as this user.
    Another possibility is to enforce a restriction on the DESNAME parameter in a suitable report trigger. Here, you can look at the :DESNAME system parameter entered by the user and continue/abort the report generation based on its runtime value after printing an appropriate error message.
    Thanks,
    The Oracle Reports Team.

  • In cache destype=printer pdf corrupt (?), but destype=file pdf is ok

    Hi all,
    S.O.: SLES 10 (Novell)
    Oracle Reports 10g (StandAlone)
    I want execute .rdf file vía web browser, but the more important for me is printer the result by the defined printer
    for example:
    http://10.142.81.153:7778/reports/rwservlet?userid=gloviajava/gloviajava@livem&destype=printer&desformat=pdf&desname=cpd81200&report=3de9.rdf
    But the light of printer on but nothing printed.
    When destype=file the pdf resultant is OK and I can print via 'lpr -P ...'
    Anything can help me ? is very important for my work , please I hope your help.
    Thank in advanced.
    Manuel.

    Hello,
    When DESTYPE=PRINTER DESFORMAT=PDF is meaningless (the output file generated by the Reports Engine Will NOT be a PDF file)
    You can check what is in the file generated by the Reports Engine in the Reports Server Cache :
    by default , the Reports Server cache is in $ORACLE_HOME/reports/cache
    The printer cpd81200 should be defined int he file uiprint.txt .
    The PPD or HPD defined for this printer should be a PPD or HPD "matching" the printer ...
    Regards

  • Forms developer 10g and video file

    hi,
    using developer forms 10g,
    when user press play button, any video file is played that i want. is it possible ? any idea ? how can i do ?
    thanks..

    In order to play a video from a Forms you have at least two options:
    1. Create a custom java bean. This could give you the ability to play the video directly in the form. This code would be completely custom, so remember that Oracle Support won't be able to assist you with it. Java bean examples can be found in the Forms Demo set or on the following third party web site:
    http://forms.pjc.bean.over-blog.com/
    2. If the video is accessible via a URL, you can call it from a form using WEB.SHOW_DOCUMENT and display it in a browser. You can also load it in a frame of the same browser hosting the form assuming you prepared for it before the form started.
    3. If the video file is on the local machine, you can use WEBUTIL to call and open it. If the file is not on the local machine and you would prefer that it was rather than playing over the network, you could also use WEBUTIL to download the file locally, play it, they if desired, delete it.

  • Rep-3002 with DESTYPE=file

    Hello,
    I have two entries in my CGIcmd.dat file. The entries are pretty much identical, they just go to two different report servers, running on the same machine. Both specify destype=file desname=report.lis, and run the same report. One of them works fine, the other is throwing a Rep-3002.
    REP-3002: Error initializing printer. Please make sure a printer is installed.
    Any idea what is going on here and how to correct it?

    Hello,
    If you are executing the Reports on Windows :
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_trouble.htm#BABDHCIG
    D.1.11 Printing and Font Errors When Using In-process Server
    Regards

  • Urgent - Default path of saving reports when destype = file

    Hi,
    When I specify the destype = file, the generated report gets
    saved in the daefult directory, i.e., the orant/bin.
    Now, I want to save the file on a different machine.
    I understand that I can do it by specifying the desname =
    path/filename.
    But I cannot do this, because I don't want to show the whole
    path in the URL. Moreover, I cannot give it in teh cgicmd.dat,
    because the filename is not static. I want to append a time
    stamp etc. to the file name. Is there some way that I can
    specify teh path in cgicmd.dat and the file name in the URL?
    Or,
    is there an environment variable or something where I can
    specify the default path where the files should be generated?
    Any help would be much appreciated.
    Regards,
    Vibha

    Hi,
    I tried the following:
    I did not specify the desname parameter in the cgicmd.dat file
    and in the After Parameter Form trigger, I have done:
    Begin
    :desname := 'e:\Testing.html';
    I gave a desname that is not dynamic, just to test. But this,
    does not set the desname. The file is still saved in teh
    Orant/Bin folder. (default folder).
    If I specify some desname in the cgicmd.dat file, then the file
    gets saved in that path. What I have specified in the After
    Parameter Form trigger does not seem to reset it.
    Note: The trigger is being fired, as other things that I am
    doing in the same trigger are getting executed.
    Please advise.
    Regards,
    Vibha

  • Error while converting class file to exp and jca file

    error while converting *.class file to *.exp and *.jca file
    =====================================================================================================================
    linux-y60u:/home/admin/java_card_kit-2_2_1/samples/src # converter -exportpath "/home/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/HelloWorld 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
    Java Card 2.2.1 Class File Converter, Version 1.3
    Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/HelloWorld.class
    parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/Identity.class
    error: com.sun.javacard.samples.HelloWorld.HelloWorld: unsupported class file format of version 50.0.
    error: com.sun.javacard.samples.HelloWorld.Identity: unsupported class file format of version 50.0.
    conversion completed with 2 errors and 0 warnings.
    =====================================================================================================================

    i compile a file javacard use this command:
    ===
    javac -source 1.3 -target 1.1 -g -classpath ./classes:../lib/api.jar:../lib/installer.jar src/com/sun/javacard/samples/Identity/Identity.java
    ===
    and try to convert this class use this command
    ===
    /home/xnuxerx/admin/java_card_kit-2_2_1/bin/converter -exportpath "/home/xnuxerx/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/Identity 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
    ===
    result convert:
    ===
    Java Card 2.2.1 Class File Converter, Version 1.3
    Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    parsing /home/xnuxerx/admin/java_card_kit-2_2_1/samples/classes/com/sun/javacard/samples/Identity/Identity.class
    converting com.sun.javacard.samples.Identity.Identity
    error: export file framework.exp of package javacard.framework not found.
    conversion completed with 1 errors and 0 warnings.
    ===
    why ??
    please your comment for this problem.
    thank 4 all.

  • My LR 4 suddenly no longer recognized my memory cards. I am using the same cards and cameras but consisitently get the error message:"files not imported because the files could not be read. they are jpg and nef files...I am stuck without my workhorse! Any

    My LR 4 suddenly no longer recognized my memory cards. I am using the same cards and cameras but consisitently get the error message:"files not imported because the files could not be read. they are jpg and nef files...I am stuck without my workhorse! Any advice is helpful. This has never happened in 6 years

    answered in your other thread LR 4 suddenly no longer recognizes files.

  • My external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive. Same thing has happened with Final Cut Express.

    My new LaCie external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive.
    The same thing happened recently between Final Cut Express and my other LaCie external hard drive used as the Scratch disk. It fixed itself.
    I've run out of ideas. Help would be very much appreciated. Thanks.

    have you done some searches on FCPx and time machine? Is there a known issue with using a TM drive with FCPx? dunno but ...wait...I'll take 60 sec for you cause I'm just that kind of guy....   google...." fcpx time machine problem"  Frist page link 
    http://www.premiumbeat.com/blog/fcpx-bug-best-practices-for-using-external-hard- drives-and-final-cut-pro-x/
           You cannot have time machine backups on your hard drive if you intend to use it in FCPX.
    booya!

  • After installing Mt.Lion on my 27" iMac (2010), my copy/paste and move files would no longer function after a few minutes of use. I re-opened in Safe Mode and found everything okay, so I was told it was a bad extension. Now what do I do?

    I have tried to look for an extension like Air Print Activator, which I tried and ignored. I thought it might have some timing method that would stop my copying and pasting and moving files after a minutes ot two. So I re-installed the latest version and "uninstalled" it, hoping it would then remove an errant extension. But that didn't help. It seemed to start when I first tried out Mail and moving new emails into their mailboxes after reading. I tried to figure out how to do a Clean Install, too,  but it would not allow me to "move" the InstallESD.dmg to a USB disk, "resource busy". Everyway I turn, I'm blocked from carrying out a method of finding the culprit, short of starting from scratch -- but losing years and years of mail, files, receipts, etc. It's just too much to sacrifice. I have no idea what to do next, since I have no idea what extension is causing it or how to isolate and destroy it. Any suggestion would be much appreciated.

    You can try repairing the boot drive, Since you are running OS 10.6.8 you will need the OS DVD. Do you have it?
    Please post back if you do, and need directions on how to do the disk repair.

Maybe you are looking for

  • Queries in Siebel Analytics 7.8 (Cayman)

    Hi I am new to Siebel Analytics. I have few questions 1) I have dashboard where in 3 prompts Prompt1,Prompt2 and prompt3 , when i pass the values to these and press "Submit" and after that a web link.i am getting a report on new page. here the requir

  • Analysis and control of reactivity adjuster rods of a research reactor

    Please i want to use LabVIEW tosimulate the movement of adjuster rods of a nuclear reactor. is that going to be feasible??? if yes please help me. thanks Elizabeth

  • Hi How do I name individual photos in an album?

    Hi How do I name individual photos in an album?

  • ICal not displaying events

    Hello I received several calendar invites from windows users. the file opens and displays normally in iCal 8.0, OS X 10.10.1, but does not show the event invites this has been a consistent issue since upgrading to yosemite. I have taken the ical file

  • 5800xm Changing IP adress every 1/2 seconds

    I have problem with my phone, when im connecting by any browser, opera mobile/mini/or software one, i got my IP changing every 1-2 seconds, its always range (in ex. 212.2.99.200-205 so there is changing only lust number), i checked the sim card on ot