Can you open a report in Excel/Word desktop instead of the web pugin?

using run_report_object( and web.show_document,
how or can you get a report to open in the desktop/full version of MS Excel/Word instead of the web plugin versions?
I can get the browser to open a report in pdf with my desktop adobe reader, but not with an rtf or xml/delimited desformat.
Currently I don't pass a mimetype when opening as a pdf, but I do pass one in the url when i am destypes of xml, delimited and rtf,
as this is the only way i have found out how to open the reports in word/excel.
I'm in the process of upgrading from forms 6 client/server to 10g developer suite, so this is my try with a web based system.
Does anyone have any suggestions, or where I should look.
Below I listed my code from a procedure.
the first part of the procedure is alot of converting, but if you skip down to the part between the 2 sets of double lines this fairly standard.
PACKAGE BODY pmc_lib IS
-- Procedure to run the report.
procedure run_reports(v_report_name in varchar2, -- Report Name with or w/o a path.
v_commode in number default synchronous, -- commode
v_execmode in number default runtime, -- execute mode
v_file_sys in number default filesystem, -- dummy
v_param_list in paramlist, -- parameter list
v_show_modes in varchar2 default null) is -- used for testing,
-- if set to anthing but null, the report properties will display
-- on the screen through an alert prior to printing.
v_errorcode number;
v_errortext varchar2(600);
v_initialized boolean := false;
v_prop_reportserver varchar2(200);
v_report_path varchar2(200);
v_user varchar2(100);
v_user_sessionid number;
v_forms_version varchar2(100);
v_default_report_server varchar2(200);
v_default_server_domain_path varchar2(200);
v_connect_string varchar2(3) := get_application_property(connect_string);
v_user_name varchar2(35) := get_application_property(username);
report_id report_object;
reportserverjob varchar2(100);
v_jobid varchar2(100);
rep_status varchar2(100);
v_url varchar2(500);
v_url2 varchar2(500);
v_parameter_value varchar2(100);
v_destype_param_value varchar2(100) := null;
v_desformat_param_value varchar2(100) := null;
v_desname_param_value varchar2(100) := null;
v_value_n number := 0;
v_param_type number := text_parameter;
v_prop_execmode number;
v_prop_commode number;
v_prop_destype number;
v_prop_filename varchar2(200);
v_prop_source_block varchar2(200) := null;
v_prop_query_name varchar2(200) := null;
v_prop_desname varchar2(200) := null;
v_prop_desformat varchar2(200) := null;
v_prop_reportserver varchar2(200) := null;
v_prop_other varchar2(200) := null;
v_mimetype varchar2(200) := null;
v_selected_mimetype varchar2(200) := null;
report_not_generated exception;
report_id_not_found exception;
BEGIN
v_forms_version := get_application_property(version);
v_prop_reportserver := get_report_object_property('report1', report_server);
v_report_path := null;
v_user := v_user_name || '/' ||
get_application_property(password) || '@' ||
v_connect_string;
if v_connect_string = 'NNN' then
v_default_server_domain_path := 'pmcoracapp01.aapmc.com/reports/rwservlet';
v_default_report_server := 'rep_pmcoracapp01_frhome1';
else
v_default_server_domain_path := 'oradevsrv.aapmc.com/reports/rwservlet';
v_default_report_server := 'rep_oradevsrv_frhome1';
end if;
v_initialized := true;
-- Check to see what version of forms is running.
if substr(v_forms_version, 1, 1) <> '6' then
-- Check to see if WEB version is running
-- This may be an unnecessary check.
if (get_application_property(user_interface) = 'WEB') then
report_id := find_report_object('report1');
-- id_null won't work on a report_id in Version 6, may put back in 10g once version 6 is gone completly
-- if id_null(report_id) then
-- raise report_id_not_found;
-- end if;
-- Because of Convertions from old system the following are needed.
-- 1) If 'execmode' is runtime, then change it to batch.
if v_execmode = runtime then
     v_prop_execmode := batch;
else
     v_prop_execmode := v_execmode;
end if;
-- 2) If Report name has an attached path, then remove it.
v_value_n := instr(lower(v_report_name), 'k:\pmc\new\');
if v_value_n = 0 then
     v_prop_filename := v_report_name;
else
     v_prop_filename := substr(v_report_name, v_value_n + 11);
end if;
-- From looking at the FORMS, 'destype' parameter is always passed in from the FORM.
-- It is either 'preview' or 'file'.
-- This is here for the converstion from Forms 6 to 10g.
-- If for some reason destype has not been passed in as a parameter, you will get a FORM error,
-- saying the parameter does not exists.
begin
-- 3) If 'destype' is one of the following, then change it to cache.
get_parameter_attr(v_param_list, 'destype', v_param_type, v_destype_param_value);
if lower(nvl(v_destype_param_value, 'null')) in ('preview', 'file', 'null') then
v_prop_destype := cache;
-- 3a) If 'destype' was = 'file' then check the 'desformat' and 'desname'.
if lower(nvl(v_destype_param_value, 'null')) = 'file' then
-- 3b) Get 'desformat' value
get_parameter_attr(v_param_list, 'desformat', v_param_type, v_desformat_param_value);
-- 'delimited' was not working, so change all 'delimited' to 'delimiteddata'.
if lower(nvl(v_desformat_param_value, 'null')) = 'delimited' then
     v_desformat_param_value := 'delimiteddata';
end if;
-- 3c) If 'desformat' is NOT one of the following, then change it to pdf.
if lower(nvl(v_desformat_param_value, 'null')) not in ('pdf', 'xml', 'rtf', 'delimiteddata') then
v_prop_desformat := 'pdf';
else
v_prop_desformat := lower(v_desformat_param_value);
end if;
-- 4) Get 'desname' property.
get_parameter_attr(v_param_list, 'desname', v_param_type, v_desname_param_value);
v_prop_desname := lower(v_desname_param_value);
end if;
else
v_prop_destype := lower(v_destype_param_value);
end if;
exception
when others then
null;
end;
-- If a desformat is rtf, xml, or delimited then get a mimetype to pass to the url
if lower(v_prop_desformat) = 'rtf' then
v_mimetype := '&mimetype=application/msword';
elsif lower(v_prop_desformat) = 'xml' then
v_mimetype := '&mimetype=application/vnd.ms-excel';
elsif lower(v_prop_desformat) = 'delimiteddata' then
v_mimetype := '&mimetype=application/vnd.ms-excel';
end if;
-- 6) If the Following are not set within the Report Object then
-- set them to the following defaults.
-- These are al required to be set for the Report Object to Function.
-- These are the defaults for AAPMC.
v_prop_execmode := nvl(v_prop_execmode, batch);
v_prop_commode := nvl(v_prop_commode, synchronous);
v_prop_destype := nvl(v_prop_destype, cache);
v_prop_desformat := nvl(v_prop_desformat, 'pdf');
v_prop_reportserver := nvl(v_prop_reportserver, v_default_report_server);
-- Set All Report_Object Properties
set_report_object_property(report_id, report_execution_mode, v_prop_execmode);
set_report_object_property(report_id, report_comm_mode, v_commode);
set_report_object_property(report_id, report_destype, v_prop_destype);
set_report_object_property(report_id, report_filename, v_prop_filename);
set_report_object_property(report_id, report_source_block, v_prop_source_block);
set_report_object_property(report_id, report_query_name, v_prop_query_name);
set_report_object_property(report_id, report_desname, v_prop_desname);
set_report_object_property(report_id, report_desformat, v_prop_desformat);
set_report_object_property(report_id, report_server, v_prop_reportserver);
set_report_object_property(report_id, report_other, v_prop_other);
-- Run Report_Object
reportserverjob := run_report_object(report_id, v_param_list);
v_jobid := substr(reportserverjob, length(v_prop_reportserver) + 2, length(reportserverjob));
-- If Report Status is not 'FINISHED', then loop till it is.
if reportserverjob is not null then
rep_status := report_object_status(reportserverjob);
while rep_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED') loop
rep_status := report_object_status(reportserverjob);
end loop;
if rep_status <> 'FINISHED' then
raise report_not_generated;
end if;
-- Create 1st part of url.
v_url := 'http://' || v_default_server_domain_path || '/getjobid' || v_jobid || '?server=' || v_prop_reportserver;
-- Check for mimetype.
if v_mimetype is not null then
v_url := v_url || v_mimetype;
end if;
-- Final part of url.
v_url2 := 'javascript:window.open("' || v_url || '", "", "fullscreen=no, titlebar=no, location=no, toolbar=no, menubar=no, status=no, resizable=yes"); self.close()';
-- This is the built-in that calls a new browser window
web.show_document(v_url2,'_blank');
else
raise report_not_generated;
end if;
end if;
-- Destroy the parameter list.
destroy_parameter_list(v_param_list);
else
-- This section if for Client Server, Version 6 of forms.
-- It will do the same as before the conversion.
-- It is only used before the complete conversion.
if v_report_name is null then
return;
end if;
v_value_n := instr(v_report_name, 'k:\pmc\new\');
if v_value_n = 0 then
     v_prop_filename := 'k:\pmc\new\' || v_report_name;
else
v_prop_filename := v_report_name;
end if;
run_product(reports,
v_prop_filename,
v_commode,
v_execmode,
filesystem,
v_param_list,
null);
end if;      
-- create history record of the report being run
insert into pmc_report_history values(
s_pmc_report_history.nextval,
v_prop_filename,
v_user_name,
sysdate,
v_forms_version,
v_jobid,
v_destype_param_value,
v_desformat_param_value,
v_desname_param_value,
v_prop_destype,
v_prop_desformat,
v_prop_desname,
v_mimetype,
v_window_open_params);
commit;
exception
when report_id_not_found then
show_user_alert('ERROR: Cannot Find Report Object!', null);
when report_not_generated then
show_user_alert('ERROR: Report Not Generated!', null);
when others then
v_errorcode := SQLCODE;
v_errortext := SQLERRM;
show_user_alert('ERROR : ' || v_errorcode || ' = ' || v_errortext, null);
end;
end;

What you could try is downloading the report to the client pc using WEBUTIL_FILETRANSFER.URL_TO_CLIENT, then open the locally save file using something like:
CLIENT_HOST('cmd /c rundll32.exe url.dll,FileProtocolHandler "localfilename"');

Similar Messages

  • Word Web App can't open a document (corruption) but Word Desktop can

    Hi,
    My team and I are currently working on integrating a custom WOPI-Host and everything is going pretty good.  While testing out different documents that will be used in the system to see the supported features and the reaction of Word Web App we found
    a document that is problematic.
    First things first, we took a document that was in Word 97-2003 version (.doc) and converted it in Word Documents (.docx).  We had to actually use the Word Desktop Convert functionality because using "Save As" wouldn't work.  We found
    out that the document had Custom XML Data which was the reason that the "Save As" didn't work.  So we did 2 version of the document in docx version.  One that kept the Custom XML Data and one that didn't have it.
    Now when we try to open the documents in the Word Web App, both trigger the same error: "Sorry, Word Web App can't edit this document because it appears to be corrupt.".  What I don't really understand is that I can open them in the Desktop
    version of Word without any problems.  Also, if it was simply the Custom XML Data that would prevent Word Web App to open the document, how come the version of the document without these Custom XML Data is still considered corrupted by the Word Web App.
    If needed, I can send the documents in question (probably by email since I don't see an option to attach them to this question).
    Thanks,
    Patrick Racicot

    Hi,
    I understand you can't open the Word documents from Word Web App, but may I know how you converted them? What is that "Word Desktop Convert functionality"? Would you please detail the steps of the conversation?
    When you try the "Save As" method, any prompt or error? Can you keep saving just ignoring the error?
    Before the conversation, I suggest you try removing the hyperlinks in the original .doc document, then convert the document to .docx format, check if then it can be opened from the Word Web App.
    Feel free to post back to provide more information.
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Can You Open a User Mailbox with Your Exchange Account on the iPhone?

    I can add user mailboxes on the same domain to my Outlook on my Mac and/or Windows PC but I don't see an option on my iPhone when I add my Exchange Account to the Mail App.
    Is this possible?

    Select the Exchange account under Accounts.
    Select Edit at the top right for the account.
    Select New Mailbox at the bottom right to create a new server store mailbox fot the account.
    Enter the name for the new mailbox in the space provided.
    Select Save at the top right.
    Select Done when finished.

  • Can you open word doc. In pages? (Opening a doc. From the web) in the iPad or iPod tuch?

    Can you open word doc. In pages? (Opening a doc. From the web) in the iPad or iPod tuch?

    NH,
    This may seem a fine point, but iWork apps don't actually Open Office apps. They Import them. The reason I make this distinction for you is that when you view the result of the import, you may see some variations from what was in the Office document because of an imperfect translation, and when you make edits, you are editing an iWork document, not the original Office document.
    Jerry

  • Can you open with Pages documents that were created in a 2004 version of Microsoft word for Mac?

    Can you open in Pages documents that were created in a 2004 version of Microsoft Word for Mac?

    Pages '09 will open .doc files from Word 2004. The Mac OS is not what is in question. Pages '09 opens Word 2004 documents and if the same version of Pages will run in Lion and in Mountain Lion ..... Thats all that matters.
    I trust you were using MS Office 2004 and would now like to buy Pages?

  • Can you open a word document in pages 08

    Quick question however stupid it is
    can you open a word document from a pc in pages 08?
    sorry in advance if i have posted this in the wrong discussion area
    cheers
    Message was edited by: Lama323

    The answer is as above wrote yes. Does it do it perfectly, the answer is no. Opening a .doc/.docx in Pages'08 will generate a frame warning message I find. I find text and symbols are preserved well, but formatting is not perfect. An example of my own is in the screenshot below. Same page 28 on a .docx but formatting of the document is not exactly preserved as you can clearly see. Where preservation of formatting is critical Pages is good, but not perfect alternative to Word '08.
    http://img225.imageshack.us/img225/2461/docxcu2.png

  • I can't open a report created in win XP on win2000

    I can't open a report created in win XP on win2000
    I created a report in winXP on SCOTT schemas and I tried at home to reopen the report.
    I receive an error like UNABLE TO OPEN .....REP-0110.
    I tried these reports on another computer with WINXP and they perfectly worked.
    Only win2000 has this problem? Can I solve this problem without installing WinXP?
    Thank you

    there should be no difference, except if you reports versions on those two machines are different. have you tried the other way around, create a file on win2000 and try to open it on XP ? maybe the file gets corrupted during transfer or something.
    thanks,
    ph.

  • I need to create a dashboard.  How do you bring Crystal Reports into Excel?

    Hello,
    I need to create a dashboard.  My boss wants a spreadsheet to show multiple reports and charts about the business.  I know you can insert multiple charts in Excel.  However, I need to be able to insert a report next to one of the charts.
    I am thinking of using the RDC and bring in a Crystal Report.  The problem is that I see with Crystal Reports 2008, you can't use RDC.
    Is there an upgrade to RDC?  How do I bring the Crystal Report into Excel next to the imbeddged charts.  I know I can export a Crystal Report to Excel.  But that Exports to a entire spreadsheet.  I just want to embed a Crystal Report into Excel.  The last time I did a project like this, I used to use the RDC with the same code as in VB6.  Worked great.
    How do you embed a Crystal Reports now?
    Thanks.

    The question was how do you do it?
    I don't have .NET.  However, if that is the only way, then I can buy .NET.
    I just need someone that knows how to do it to point me in the right direction.  To embed something in Excel, I hadn't thought of using .NET.

  • Can't open XL Reporter with Vista

    Whenever I try to open XL Reporter it hangs while connecting and then throws the error:
    "Unable to connect to XL Reporter. Error! Server communication failed!
    Cause: Server (local)
    The connect information provided in MetaInfo.xml is wrong.
    (Please contact the administrator to change ChangeDbPassword."
    I am using Windows Vista and have Office 2007. I have checked the box "Trust access to the VBA project object model" in Trust Center Settings.
    I removed the client completely, deleted the XLR folder and reinstalled. Same error. I opened the ConnectionManager.exe in the XLR folder. I can't connect there with (local) as the db. If I change it to my machine name\SQLEXPRESS then I connect. However, when I go back to open XL Reporter from within Business One, I get the same error.

    You may check these threads:
    Unable connect to XLR in 2007
    Re: Unable to connect XL Reports
    Unable to connect XL reporter.
    XL Reporter error
    Thanks,
    Gordon

  • How many Iphone 5 can you open under one account ??

    Just a simple question , how many iphone 5 can you open under one account ? is it 5 or more ??? anyone know . I've been a verizon customer for a little bit over 5 months ..... any input ??? thank you

    I'd call Customer Service and ask, because the Share Everything plan is supposed to allow 10 lines:
    http://support.verizonwireless.com/clc/faqs/Calling%20Plans/share_everything.html

  • Can you open freehand files in CS6?

    can you open freehand files in CS6? I have been using both illustrator & freehand for 15 years & have thousands of work files being freehand.
    It seems very disappointing to have to keep an old version of illustrator just to open these files. I also find it interesting that many of the key tools that freehand had over illustrator are not translated into the newer versions of illustrator. Something simple like you still can't have a unique picture bullet • before text in illustrator. In freehand you could cut & paste any graphic into the text you were designing.

    saturn234 wrote:
    can you open freehand files in CS6? I have been using both illustrator & freehand for 15 years & have thousands of work files being freehand.
    No. The conversion plugin didn't make it into CS6 so the last import function was CS5.5 
    It seems very disappointing to have to keep an old version of illustrator just to open these files.
    At this point, it is the only way to make your files convert into Illustrator although I've had some luck with exporting to EPS or (if your FH graphics are simple enough) save as AI format. Keep your eyes on this project however : http://www.stagestack.com/
    I also find it interesting that many of the key tools that freehand had over illustrator are not translated into the newer versions of illustrator. Something simple like you still can't have a unique picture bullet • before text in illustrator. In freehand you could cut & paste any graphic into the text you were designing.
    As a fellow FreeHand user, I couldn't agree more. Other users of both programs have said this endlessly over the years here. A litany of features are still m.i.a. since FHMX was acquired years ago... including inline graphics. It's almost comical.

  • How can you open a PSDX Photoshop Touch file in PS cs6?

    I've looked at some video and they talk about downloading a plugin for CS5x and that one isn't needed for PS CS6 w/ the ACC. I can see the psdx file but PS will not open it saying it is the wrong file type. Do I first need to export the file from PSTouch as a JPG? Can someone direct me to a specific Help Resource URL please. Thanks.

    Sometimes Adobe Help and Adobe TV is not up to date or at least not very clear to me. So here is the simple answer after playing and experimenting with PST. I am unable to save or export any image OUT of PST except as a PSDX file and PS CS6 will not open a PSDX file without a plugin. Following the instructions on AdobeTV and/or the help files in PST tells you to download a plugin AFTER signing in to the Cloud, but there is no download link as per the example. SO..... to get a PSDX file to open in PS CS6 do the following.
    1) Open the Adobe Application Manager
    2) Select the Touch Apps Plugins
    3) Allow it to download and install
    4) When complete open PS FROM the Windows START menu. You will think something is wrong because it will be minutes before it opens. Everything is ok it just takes a while for the plugin to register with PS CS6 the first time.
    5) You can now open PSDX files in PS CS6.
    As for the usefulness of PST..eh I guess it's ok. Like most things related to Adobe Cloud Apps and Services it needs help. The one advantage I can see is that I do not need a seperate app to open a NEF file other than that..eh, I've seen better apps. With that said let's not forget that Adobe IS trying and will get better with time and money. Look at it this way, when PST first came out it only supported iPad then it was worked on to support Android 8.9" tablets now it works on 7" Androids. Eventually, it will be a lite version of PS where you can work on the file both in PS and on the go without having to save your layers as individual files and some other features and functions it currently lacks.
    Stay with it Adobe eventually you'll have a superior product worth the $10 if not more. You can do it guys, I have confidence in you. You've come a long way since May, tech wise, it's just your marketing people that drive hype too much so that us loyal users have too high of an expectation.

  • How can you open photos in adobe reader x

    How can you open photos in adobe reader x

    You can't - Adobe Reader will only open PDF files.

  • Can you open a Final Cut Pro project file (6.0.6) in Final Cut Express (v4)

    I am working on a project in Final Cut Pro (v 6.0.6) and I need to pass it off to a colleague who only has Final Cut Express (v 4). The media in the project is DVNTSC.
    I went to the Apple store at the Stonestown Mall in San Francisco today and they assured me that my colleague would be able to open my FCP project file in his FCE program... but I'm skeptical.
    Can you really open a FCP project file in FCE?
    Could somebody who has both confirm this for me?
    Thanks,
    Sam

    Under very rare circumstances can you open an FCP project in FCE. It almost never works and is not supported by Apple.

  • Can you open a Microsoft office powerpoint document on an iPad?

    can you open a Microsoft office powerpoint document on an iPad?

    You should be able to preview it if it was sent to the iPad as an email.
    Or you can purchase Keynote for the iPad, which knows how to open PowerPoint.

Maybe you are looking for

  • Using iPhone as an iPod only

    I just received an iPhone for xmas but I'm not ready to change over from my current cell phone (pending move). I would like to use for music listening and maybe some pictures viewing. I currently own an iPod video. Will someone please let me know how

  • Java.io.NotSerializableException  for Mail Client

    Hi All, While running a simple SendMail client I am getting following Exception from the server (using weblgoic 7.0). Any idea what could be wrong? Start server side stack trace: java.io.NotSerializableException: javax.mail.Session at java.io.ObjectO

  • IPIVR 7.0(1) OS Disks for HP server

    Hello, Quick simple query. I've received only the IPIVR 7.0(1) installation/Upgrade disk, but not the OS disk :-(.. Would there be any issues with installing the Cisco Meetingplace OS 2003.1.2a DVD for HP server onto this intended IPIVR server? Is it

  • Problem in calling rsh command Please help......

    hi, I want to execute some commands on unix through java, for this i want to run my program simulataneously on differnt machines so that i get data to compare. I think i have to invoke the rsh command with the machine name for it but it is giving err

  • How to update PSe 10 to camera raw 7.3

    How does one update pse 10 to use camera raw 7.3?