RE:Using host built-in to use forms to open a report in MS-Excel

Hello all!
i'm using Developer/2000 and trying to run a report in MS-Excel instead of run_product eg.
host('C:\Program Files\Microsoft Office\OFFICE11\excel.exe');
This open excel but without the any records. What else do i need to add plz.
Thnx in advance.

so i tried this
host('C:\Program Files\Microsoft Office\OFFICE11\excel.exe c:\vashrs\scr\fmb\mainpy.rep');
and indeed the excel spreadsheet opened but not formatted like a normal excel file ie. not elligible. I got stuff like
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþ\á(h
How can i make the report open like an excel file.
Thnx so much in advance.

Similar Messages

  • Using HOST built-in in Forms under an AIX O/S

    Hello,
    I need to use the HOST built-in inside a form under an AIX O/S, but it doesn't work. I have tried some different options:
    a) HOST('cp /xx/xx/xx/file1.txt xx/xx/xx/file2.txt');
    b) HOST('sh cp /xx/xx/xx/file1.txt xx/xx/xx/file2.txt');
    c) HOST('ksh /xx/xx/xx/file1.txt xx/xx/xx/file2.txt');
    d) HOST('/usr/bin/cp /xx/xx/xx/file1.txt xx/xx/xx/file2.txt');
    (NOTE: The files are referenced with the absolute path).
    Why it doesn't work?
    It seems that the cp command is not found when i execute it. When I put this instruction in a Windows O/S it works perfectly puting 'cmd' at the beginning of the literal, because of 'cmd' is the command.com for windows.
    Maybe I don't know what is the command.com for AIX?
    Could you help me?
    Thanks.

    Hello
    What Gerd was getting at is where you had:
    cl := '"C:\Program Files\Internet Explorer\iexplore.exe" http://springfield01:7777/forms/frmservlet?form=sas2.fmx&userid='||user||'/'||get_application_property(password)||'@fc';
    host(cl,no_screen);
    replace the code with:
    cl:='http://springfield01:7777/forms/frmservlet?form=sas2.fmx&userid='||user||'/'||get_application_property(password)||'@fc';
    web.show_document (cl,'_blank');
    This will open a new IE window with the url you requested.
    You could alternatively if you already have webutil installed just replace
    host(cl,no_screen);
    with
    client_host(cl,no_screen);
    Though logically the having to have "C:\Program Files\Internet Explorer\iexplore.exe" in your code defeats the idea of a web application. I would go for the first option because you don't care where IE is on the machine.
    cheers
    Q

  • Execute report output using RUN_REPORT_OBJECT built-in  in  Oracle Forms 10

    hello,
    am executing report when am pressing the Button
    in the WHEN-BUTTON-PRESSED Trigger i wrote the below code
    Declare
         v_report_id report_object;
         v_report varchar2(100);
         vjob_id varchar2(100);
         vc_rep_status varchar2(100);
    BEGIN
    v_report_id := FIND_REPORT_OBJECT('new_test_report');
    v_report := RUN_REPORT_OBJECT ( v_report_id );
    vjob_id := substr (v_report,31); -- ( vc_ReportServerJob, length(vc_reportserver)
    +2, length(vc_ReportServerJob) );
    vc_rep_status := REPORT_OBJECT_STATUS (v_report);
    IF vc_rep_status = 'FINISHED' THEN
    WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||'?server=rep_mohahubkpcomp_ORaHOme_IAS'||'&userid=bedman/bedman@bedman'||'&paramform=no','_blank');
    ELSE
    message ('Report failed with error message '||vc_rep_status);
    message ('Report failed with error message '||vc_rep_status);
    END IF;
    END;
    the above code is executing the output but it is asking the AUTHENTICATION TO OID(Oracle Internet Directory). If i give this id then only the Output is displaying..
    in WEB.SHOW_DOCUMENT i mentioned that userid is DB id... if it is wrong
    which id i have to specify.
    and The report is located in Reportserver . and it is added to Form. in report node.
    it is an urgent requirement.
    Thanks & Regards
    Gagan.

    Hello,
    Have you created a "reports object" in Forms ?
    (watch under the Reports node in the "Object Navigator".
    Regards

  • Could not use 'host' command in my custom form in 11i

    Dear all,
    The 'host' command makes the application wait and leads to no further response.
    Thks & Bst Rgds,
    Edward

    Would anyone pls help me?

  • Working with Host built in in forms

    Hi everybody,
    I am working on form in which i created menu. That menu has submenu called 'Service desk. when user click on 'service desk' it take the user to weblink which is opened in mozilla firefox.. I used host built in to launch mozilla firefox. It works fine.
    The next functionality i want that is when firefox is not installed on system then it will populate message to user "Please install firefox". How can i check with oracle forms whether firefox is installed in system or not. Is there any way to do it?
    I am using solaris 9 and forms 6i.
    Please help me on this.

    Can you be more specific about your environment? You are using 6i and the host command, so I assume you are using 6i in client/server mode. Is that on Windows? What are you running on Solaris?
    If the client runs on Windows, you can check the registry for the default browser with Win_Api_Environment.Read_Registry. You will have to Google a bit to find out which key is used to specify the default browser.
    You can also check where Firefox is installed with registry path HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\3.5.5 (en-US)\Main and registry key PathToExe.
    It should be something like this:
    declare
      v_firefox   varchar2(100);
    begin
         v_firefox := Win_Api_Environment.Read_Registry
           ('HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\3.5.5 (en-US)\Main'
           ,'PathToExe'
           ,true);
      message('Firefox is installed on: '||v_firefox);      
    exception
         when no_data_found then
           message('Firefox is not installed');
    end;

  • How to open Crystal report 11 using the Visual c++ 6.0 code

    I am using Visual c++ 6.0.I can't open crystal report X1 from my vc++ application. The same code which I have used for crystal report 7.0 is using for crystal report X1.But it shows "Unbale to load the report". Please help me out.
    The code snippet I have used is given below for the reference
    //m_Crystal_Image - Object of CCrystalCtrl class
    //csDBFilePath - Access Database File path
    //csReportFilePath - Crystal report 11 file path
    m_Crystal_Image.SetReportFileName(csReportFilePath);
    m_Crystal_Image.SetWindowTitle("Test Report");
    m_Crystal_Image.SetDataFiles(0,csDBFilePath);
    m_Crystal_Image.SetDiscardSavedData(true);
    m_Crystal_Image.SetDestination(0);
    m_Crystal_Image.SetWindowState(2);
    m_Crystal_Image.SetAction(1);
    Thanks for ur help in advance.....

    same as:
    How can I open the crystal report X1 report from the vc++ application?
    Locking thread
    Ludek

  • Opening pdf report in full size in browser from Oracle Forms 10g

    Hi,
    I'm working on a migration from Forms 6i to Forms 10g and i don't have much experience on the subject.
    In forms 6i, it seems it was possible to open a report full size by using a parameter for the RUN_PRODUCT: Add_Parameter(pl_id,'MAXIMIZE', TEXT_PARAMETER, 'NO');
    This does not seem to work in 10g. How can it be done in 10g ? Can anyone help, please ?
    Thanks.

    Hello,
    Thanks for your reply. This is a most helpful document which i used as a support to call reports from forms. Unfortunately, i can't find a way in it to force forms to open the report in a maximized browser.
    Cheers

  • Using Host in Forms is not freezing the caller

    I am using the Host built-in command to launch a web page from a client/server Forms6i application.  I've found there are many different ways I can do this:
    I can hardcode the path of the browser executable,
         host('"C:\Program Files\Internet Explorer\iexplore.exe" http://www.oracle.com/index.html'); 
    use 'Start' with or without '@' and 'cmd /c ',
         host('@Start iexplore http://www.oracle.com/index.html');
         host('cmd /c Start iexplore http://www.oracle.com/index.html');
         host('Start iexplore http://www.oracle.com/index.html');
    or use ShellExecute to launch the default windows browser. 
    I want the form to be frozen/unusable until the user closes the browser.  I thought that was the default behavior of the Host command.  However, that only happens in the example where I provide the path.  I'd rather not have to provide the path to the browser executable, but I can't seem to get either of the other two methods to freeze the form for me.  Any ideas?
    Thanks,
    Meredith

    I suspect the reason you don't want to hard code the IE path if for the obvious reason that some users may have it installed somewhere else.  Good thinking
    For cases like this, it may be worth investing some time in offering some configurable options to the user.  This would be a good first example.  The option to choose the default browser related to the app.  You could create a "Settings" option in your application where the user could set things like (these are just examples):
    Preferred browser
    Save current position (this would allow the app to start in the current position next time it was started)
    Background color
    And so on....
    Use TEXT_IO to create a config file on the client machine that would store the values chosen by the user.  On application startup (maybe in WHEN-NEW-FORM-INSTANCE), use TEXT_IO to read the values previously set.  If no config file is found at startup, use TEXT_IO to create one with default values that the you decide.  Doing something like this would make the application more customizable for the user, but it would also solve your current problem.  With this design, you can get the path to the preferred browser based on what the user selected.  So if they wanted Firefox instead of IE, they would get it and your app code wouldn't need changing to do it.
    That said, whatever you decide to do, remember that in newer versions of Forms there is no "client/server" deployment option.  Therefore the functionality of such calls will change is some cases.  Hint-hint.... Please consider upgrading to the latest Oracle Forms version.  The latest version is 11.1.2.2.  In the latest version, you can do basically the same thing I described about with the addition of WebUtil.  Therefore very little code would need to be updated when moving to the web.

  • To find whether a form using HOST (Unix) command to exit/execute a process.

    Hi all,
    I have some(Little bit) knowledge on forms.But here I got one requirement which was confusing me .The requirement is ,we have nearly 70 custom forms developed
    using TEMPLATE.fmb.Now I have to open each and every form and have to check whether that form is using any HOST (unix) command to exit to the shell and
    execute a process .I never got this type of requirement previously .Can any one help in how to search for those commands ,I.e is there any standard to use Unix call in
    particular trigger or etc..
    Thanks in advance .
    Regards,
    Gopi.CH

    Your question is a little unclear. The "HOST" command is an Oracle Forms built-in command which allows you to execute OS commands. So the only part of it that belongs to forms is the part that looks like HOST(). The contents within the parentheses would be the command you wanted to execute. For example:
    HOST('/path/to/your/script.sh');Refer to the Forms Builder online help for more information about how to use the HOST command.

  • Use Host command in Oracle forms 6i

    hi
    all
    i use Oracle forms 6i i run in a web and in that i have connect one server so,
    i have to use Host Command and i have to fire this command
    host (' net use \\windchillsvr\e\jyotionline /user:dwg_users dwg_users');
    But it's Not Connect
    My Forms in run in Web
    so help

    JavaBean does d othe job for you but it requires signing process; I used it when I was working on forms6i for our project.
    I could use another approach that is the file type command executable which it stays in client's PC to do it and it does not requires signing at all since I am now working on the Java EE project for downloading and launching the third party tool in client's PC.
    I plan to write a article for forms use, which could do all the heavy WebUtil can do, but not need to go thru the signing process.

  • Using READ_IMAGE_FILE BUILT-IN IN Forms causes a loss in the  resolution

    Hi All
    Oracle Developer suite 10g, database 11 gr2, windows Platform
    I'm using READ_IMAGE_FILE BUILT-IN in forms builder to read an image and get a good background for the form, but the image displays in the form with a resolution that is less than the actual image resolution.
    Please help

    Francois,
    Sorry, because I don't have any background about java,
    This is the java console output after saving a new record :
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\it maniger
    Proxy Configuration: Browser Proxy Configuration
    JAR cache enabled
    Location: C:\Documents and Settings\it maniger\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    Loading http://itmanage:8889/forms/java/frmall_jinit.jar from JAR cache
    Loading http://itmanage:8889/forms/java/myappicons.jar from JAR cache
    Loading http://itmanage:8889/forms/java/frmwebutil.jar from JAR cache
    Loading http://itmanage:8889/forms/java/jacob.jar from JAR cache
    Loading http://itmanage:8889/forms/java/handleimage.jar from JAR cache
    Loading http://itmanage:8889/forms/java/classes12.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    إصدار بريمج Forms هو : 10.1.2.0
    Lecture.bLog=true
    Lecture.bLog=true
    InitConn=jdbc:oracle:thin:@zogotoun-jnq4h6:1521:XE
    InitUser=tutoforms
    InitPwd=tuto
    Clear imge
    Searching JAR for file:///f:\femtosoft\fmst\mainmenu.jpg
    Unable to find file:///f:\femtosoft\fmst\mainmenu.jpg in JAR
    Searching docbase for file:///f:\femtosoft\fmst\mainmenu.jpg
    Constructed URL: file:/f:/femtosoft/fmst/mainmenu.jpg
    Image found in DOCBASE: file:/f:/femtosoft/fmst/mainmenu.jpg
    Start Ecriture()
    Ecriture() : Connect to database
    Ecriture() : error connecting to the database java.security.AccessControlException: access denied (java.net.SocketPermission zogotoun-jnq4h6 resolve)
    Ecriture() : execute query=UPDATE PHOTOS set PHOTO_JAVA = ? where IDENTIFIANT=5
    java.lang.NullPointerException
    Mostafa

  • Calling SQL Loader using HOST command from Developer Forms 4.5

    I want to execute a set of code from D2K Forms 4.5 which has interfface with Client - OS ( In my case Windows NT/XP). I want to execute SQL Loader from Forms using Host Command and then after completion of that process, I want to do next transcations ( depending upond success of HOST/SQL Loader).
    How to achive this?
    I tried writing code like this ...
    l_vc_command := 'sqlldr73'
                        ||' USERID='||l_vc_username||'/'||l_vc_password||'@'||l_vc_connect_string
                        ||' CONTROL='||l_vc_filepath||'Upload.ctl'
                        ||' DATA='||LTRIM(RTRIM(l_vc_fileloc))
                        ||' LOG='||l_vc_filepath|| l_vc_log_file || '_' || l_dt_sysdate_str ||'.log'                    
                        ||' BAD='||l_vc_filepath|| l_vc_bad_file || '_' || l_dt_sysdate_str ||'.bad'
                        ||' DISCARD='||l_vc_filepath|| l_vc_discard_file || '_' || l_dt_sysdate_str ||'.dsc';
    HOST(l_vc_command,NO_PROMPT);
    After this command i want to do some other code execution. so even if it fails or success, next code is executed. How to control this?
    Please help..
    Regards,
    Milind

    Forms6i running on W2000, Rdbms 8.1.7
    in Forms I added a button TEST,
    Trigger when-button-pressed : host('test.bat') ;
    in directory .......\frm I added file test.bat :
    REM ===============
    cd /d C:\........\ldr
    pause
    sqlldr parfile=test.par
    pause
    type test.log
    pause
    exit
    REM ================
    now, pressing TEST button opens DOS window, telling me what's going on, running sqlldr, finally going back to forms
    Are you using NO_PROMPT or NO_SCREEN option of HOST command ?
    Had a look at Forms 4.5 manuals, there is no mentioning of (a)synchronously operation in connection with HOST command.

  • Calling SQL Loader from Forms 4.5 using HOST command in Win2000

    One of my forms calls SQL Loader 7.3 using HOST command to load a csv file onto the database(Oracle 7.3) under Windows 2000 platform.
    Only after sql loader finishes its operation the control should come to my form i.e. synchronous execution.
    As of now its running asynchronously.
    Is there any way to make it synchronous. If Not any other work arounds?
    Environment Details
    Forms [32 Bit] Version 4.5.10.6.0 (Production)
    Windows 2000 Operating System
    Oracle7 Release 7.3.2.3.2

    Forms6i running on W2000, Rdbms 8.1.7
    in Forms I added a button TEST,
    Trigger when-button-pressed : host('test.bat') ;
    in directory .......\frm I added file test.bat :
    REM ===============
    cd /d C:\........\ldr
    pause
    sqlldr parfile=test.par
    pause
    type test.log
    pause
    exit
    REM ================
    now, pressing TEST button opens DOS window, telling me what's going on, running sqlldr, finally going back to forms
    Are you using NO_PROMPT or NO_SCREEN option of HOST command ?
    Had a look at Forms 4.5 manuals, there is no mentioning of (a)synchronously operation in connection with HOST command.

  • How to use HOST call DOS continuous running problem but NOT hold Forms scre

    In my Forms, I have a Button a start a MP3 recorder program to record voice, I use HOST command to init the program successfully. However, since the MP3 recorder program in continuous running, the HOST command hold my Forms screen until the MP3 program stop.
    I have try to use Open_form to open another form to start this MP3 program. It still hold the whole Forms system.
    Is there any solution to start a continuous running DOS program but NOT hold the Forms screen?
    Thank You !

    You didn't provide your host-command, so i simply guess its something like
    HOST('"c:\Program Files\mp3.exe" someoptions');instead of calling the program directly, you could use a commadn batch along with the start-command, for this should launch the program asynchronously:
    HOST('cmd /c start "c:\Program Files\mp3.exe" someoptions');hope this helps.

  • Submitting a form using Adobes built in submit button

    Hello All,
    I have created a form in Acrobat XI Pro and use the built in distribute wizard
    Adobe opens up and asks for the email to send the forms to.
    This works fine.
    When the user fills the form and press the Adobe submit button, (not the one you add to a form) how can I indicate to the user the button was pressed!
    Thanks

    Is there any way after pressing the submit button i can set a flag or message?

Maybe you are looking for

  • Pro 600 cartridge and others

    Can anyone out there tell me if the laserwriter pro 600 has the same ink cartridge as the laserwriter 4/600 please? Also, what cartridges are compatible with the laserwriter 4/600? I heard that the HP LaserJet 4 is as well as the Canon Laser LBP4 U L

  • Problem with Z fields in VA01

    Hi, We have added a Z field to VA01 transaction header lever Additional Data B. When we try and create a order using VA01 it is working fine but when we try to record the transaction using SHDB we are unable to find the Z field in additional data B.

  • How to change the PARTITION(P#) is replace of PYYMMDD format

    hi hi everybody, i am developing the appl is used to jsp and oracle.. i need to change # is replace of YYMMDD format in oracle.. i want to display the partition wise data (like p070220) based on the query.. how can you change the query (p#, p070220).

  • Can't transfer files from PC to Nokia 5320

    can anyone help? i've installed PC suite 7.1 and i made connection via data cable,but i can't transfer files(music,pics,video,apps)...system shows me message:"Connection with the phone is lost".i don't know what to do!? p.s. i also tryed transfer via

  • Eror while open site

    hei when i instal firefox in my 2.1 sony experia x8 androidphone why he not want open this site rvbs.blogspot.com