Launch pdf from menu

How can I open a pdf directly from the menu in 10g?
I've tried to implement a dummy-window, with the following code in the "when-window-activated" trigger:
declare
     path varchar(250);
begin
     path := 'C:\folder\file.pdf';
     client_host ( 'cmd /c start ' || path );
  exit_form;
end;I get error: WUC-015: Your form must contain the following bean for this function to be available: oracle.forms.webutil.host.Host
I've included WEBUTIL in the project and as far as I can see, it contains host.Host.
I think it is a timing problem with loading webutil after the window or similar. Implementing a dummy-button and calling the code above on its "When-new-item-instance" doesn't solve the problem.
Any help will be appreciated.

I made a whole new form and since then, at least I can call the pdf by pressing that button now. (Seems I've had some unpleasant "left overs".) However, I still can't call the pdf from the menu. I'm sure now, that it's a timing-problem. I suppose, thats also the reason why it runs on my local machine but not from the server. Maybe WEBUTIL gets loaded later there than on my pc.
Anyway, I will make a work-around and start the pdf by pressing a button.
Thanks a lot for you help, though!

Similar Messages

  • How do I launch report from menu using RUN_REPORT_OBJECT?

    Hi all,
    Re: How do I launch report from menu (and have it print to the screen) using RUN_REPORT_OBJECT?
    I am using Oracle 9iAS on Windows 2000 and I have a similar problem with launching reports from the menu. The application should call the report via the RUN_REPORT_OBJECT builtin feature from Forms. The report is never displayed.
    The report is in the same folder as the menu form calling it. Do the reports have to be in a specific format? How do I get the report_id?
    The name of the report is seconds_calls. No user-specified parameters are passed. Also, the report object in the object navigator in Forms is Report4 (is this relevant?)
    When I try to run report via the form using this code:
    DECLARE
         report_id REPORT_OBJECT;
         rep_status VARCHAR2(200);
         v_rep VARCHAR2(100);          
         report_job_id VARCHAR2(200);
    --     job_number NUMBER;
    --     server_name VARCHAR2(200) := 'repserver';
    BEGIN
         report_id:= FIND_REPORT_OBJECT('seconds_calls');
         rep_status:=REPORT_OBJECT_STATUS(report_job_id);
         v_rep := RUN_REPORT_OBJECT(report_id);
    END;
    I get this error message:
    FRM-41219 Cannot find report:Invalid ID
    And this message
    FRM-40738 Argument 1 to builtin RUN_REPORT_OBJECT cannot be null
    When I tried to use the same code (above), substituting the object name for the form name,
    I got these messages:
    FRM-41219 Cannot find report:Invalid ID
    FRM-40738 Argument 1 to builtin RUN_REPORT_OBJECT cannot be null
    And FRM-10259 Invalid null argument to packaged procedure or function (???)
    Any ideas?
    Cheers,
    Pippa

    Philippy,
    substr(v_rep,instr(v_rep,'_',-1)+1)
    This code extracts the Reports job id from the Reports Server name. The run_report_object() built-in
    retrieves e.g. RepServ_9 as a job id, but in Reports9i you only need the '9' as a value to retrieve the
    output.
    Use the following sample a template. It is a procedure that expects the reports object name, teh reports server name and the
    output format as an argument. The call to Web.show_document expects the ReportsSrevices to be accessible from teh same server
    (relative addressing is used)
    PROCEDURE RUN_REPORT_OBJECT_PROC (vc_reportobj Varchar2, vc_reportserver varchar2, vc_runformat varchar2) IS
    v_report_id           Report_Object;
    vc_ReportServerJob      VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status      VARCHAR2(100); /* status of the Report job */
    vjob_id               VARCHAR2(100); /* job_id as number only string*
    BEGIN
    /* Get a handle to the Report Object itself. */
    v_report_id:= FIND_REPORT_OBJECT(vc_reportobj);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    /* Define the Report output format and the name of the Reports Server as well as a user-defined parameter, passing the department number from Forms to the Report. We don't need a parameter form to be displayed, and therefore paramform is set to "no". */
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT, vc_runformat);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, vc_reportserver);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,      'p_deptno='||:dept.deptno||'paramform=no');
    vc_ReportServerJob:=RUN_REPORT_OBJECT(report_id);
    /* remove the Reports Server name from teh job id */
    vjob_id := substr(vc_ReportServerJob,length(reportserver)+2,length(vc_ReportServerJob));
    /* Check the report status if finished. */
    vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
    IF vc_rep_status='FINISHED' THEN
    /* Call the Report output to be displayed in a separate browser window.
    The URL for relative addressing is only valid when the Reports Server
    is on the same host as the Forms Server. For accessing a Remote Reports
    Server on a different machine, you must use the prefix http://hostname:port/ */
    WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid '||vjob_id ||'?server='vc_reportserver,'_blank');
    ELSE
    message ('Report failed with error message '||vc_rep_status);
    END IF;
    END;
    Frank

  • Launch PDF from HTML and execute search

    Is it possible using JavaScript in an HTML doc to launch a PDF and execute a search.query with a passed-in search parameter? TIA

    Hello, George, thanks for following up.  I went into Advanced->Document Processing->Document JavaScripts and put the code at the top of the file outside of the dummy function declaration I had to insert to activate the edit button.  It looks like this:
    // Split the file path into an array
    var aPath = this.path.split("/");
    // Remove the last element, which is the file name
    aPath.pop();
    // Join the path elements back together and add the index file
    var cIdxPath = aPath.join("/") + "/Support Documents/SupDocs.pdx";
    search.query ("Enhanced Tactical Automated Security System (eTASS)", "Index", cIdxPath);
    function Search()
    It runs fine when I launch the PDF directly into the reader by double-clicking in file explorer in the folder above "Support Documents".  When I load the PDF from an HTML file in the same folder, however, the script does not run.  I set the reader preferences to force loading in the reader even when launched from a browser, and the script still will not execute.  I tried adding a button to the PDF and attaching the search script to it.  Again, it runs when launching directly but not from the HTML document.  Otherwise, the PDF is empty, and I'm using a relative URL and JS to load it from the HTML doc, such as:
    document.location = "mySearch.PDF"
    or
    window.open("mySearch.PDF", "searchwin");
    Neither one works.  This product has to run from a CD-ROM, so I haven't bothered to test it via http service.  Any suggestions?  Thanks again!
    Jon Camp
    Senior Computer Scientist
    Applied Research Associates, Inc.
    North Florida Division
    Training Solutions Group
    430 W 5th Street Suite 700
    Panama City, FL  32401
    comm: 850-914-3188 x203
    fax: 850-914-3189
    email: [email protected]

  • Embed and Launch PDF from an AppleScript

    I've written an Applescript, and built an interface for it in XCode. Everything works great, but I have a button I want to use to launch a help guide from within the finished application. The idea is to include the PDF in the app, so that whenever it gets installed somewhere, the button will always launch the guide.
    I'm totally stuck as to how to do it, any advice would be appreciated. Thanks!

    The regular help information that you access via your application's Help menu uses HTML (see Apple Help Programming Guide). You can use PDFs, but that involves creating a PDF View in *Interface Builder* and loading your document into it - see the PDF Kit Reference Collection, specifically the PDFDocument and PDFView class references. With either method your help files can be included in the application bundle - see the Bundle Programming Guide for methods to access items.

  • Launch pdf from Standalone

    I'm distributing my Captivate project via CD, so chose to
    publish as a Standalone project. I have pdfs that are included in
    the same folder as my exe. When I click the links to these pdfs, it
    launches Internet Explorer and I get a "Page Not Found" error. When
    I publish the project as Flash files, the links work OK, but when
    someone inserts the CD, they get the Flash security warning, which
    I think may throw some users off. I tried saving the Word docs as
    htm, but that didn't help. Can you have links from a Standalone
    project?

    Hi again Evelita
    Linking to other files in an exe output is no problem. All
    you have to do is specify the absolute path as it will be found on
    the users machine. So for a CD distribution, I would recommend that
    you manually type in the full path for the reference material e.g
    D:\ProjectXYZ\Reference_Materials\whatever.pdf.
    Hint - I actually copy all my reference materials to a CD
    with the expected path built in and then just reference my project
    to that. The only drawbacks you can expect is if your users have a
    different drive specced as the CD drive, in which case the manual
    path capture is the better one.
    Lastly, just make sure that you click on the little
    whatsisname next to the file path in the button properties dialogue
    box and select to open in a new window AND to NOT continue playing
    movie.
    Helpful I hope, insane am I
    Andrew

  • Adobe Reader 9.3.0.148 crash on launch PDF from explorer

    The following crash occurs when launching a .PDF file from Windows Explorer:
    acrord32.exe
    acrord32.dll v9.3.0.148 offset 001937FA
    Uninstalling and re-installing Adobe Reader doesn't help.
    This is a Windows XP system.
    Viewing a PDF via Internet Explorer (add-in) does work.
    Any ideas on how to get this solved?
    Thanks,
    Wouter

    Try uninstalling, running the Microsoft Installer Cleanup tool then re-installing.

  • Open PDF from menu/list box?

    I would like to be able to have site visitors view a list of
    PDF's in a menu/list box and then be able to open the PDF they
    select. Now, I have the menu box in a form. Selecting a PDF, then
    clicking the forms submit button, brings up another form. the
    second form shows the record (the PDF which was selected) - and
    clicking the submit button brings up the PDF. I would like it to be
    a one-click process versus what I have now.
    I don't know what code to palce for the 'action' attached to
    the first submit button.
    I would appreciate any help. I am using ASP js.
    Thanks

    You still need to have a single action on the first form to
    handle the
    selection but what I would do is send it to a page and use a
    Response.Redirect to send them to the write page. The
    following is vb script
    by you should be able to convert it to js.
    <%
    dim gotoPDF
    gotoPDF = request.form("SelectName")
    Response.Redirect gotoPDF
    %>
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "MontanaBill" <[email protected]> wrote in
    message
    news:f3sb74$fm7$[email protected]..
    >I would like to be able to have site visitors view a list
    of PDF's in a
    > menu/list box and then be able to open the PDF they
    select. Now, I have
    > the
    > menu box in a form. Selecting a PDF, then clicking the
    forms submit
    > button,
    > brings up another form. the second form shows the record
    (the PDF which
    > was
    > selected) - and clicking the submit button brings up the
    PDF. I would
    > like it
    > to be a one-click process versus what I have now.
    > I don't know what code to palce for the 'action'
    attached to the first
    > submit
    > button.
    > I would appreciate any help. I am using ASP js.
    > Thanks
    >

  • Opening a pdf directly from menu

    Hi All,
    I wanted to know that can we open pdf directly from menu.?
    I wanted steps regarding how to attach link/url/function to menu so that I can directly open pdf file.
    Thanks

    Hi,
    Please see if these documents help.
    Note: 332500.1 - How To Call An HTML Webpage From 11i Navigator Menu
    Note: 100180.1 - How to Launch a URL From the Navigator Menu
    Regards,
    Hussein

  • Why does choosing "convert to PDF" from a Word Doc's context menu bring up two Save As dialog boxes?

    I have a user that every time she chooses "Convert to PDF" from the context menu on a MS Word document she gets a Save As box, enters the name and location, clicks Save. Then Word starts and it brings up another Save As box and makes her enter the name and save location AGAIN. It does then create the PDF, but it is very annoying to her as she makes lots of PDFs for our board of directors (she is our CEO). I have tried it on other PCs that have a similar setup, but none have done this. They all just run the converter window after one dialog box. Please HELP

    Does your user have custom add-ons besides the Acrobat PDFMaker add-on?  If so, try disabling the other add-ons as a test to see if you get the same results.
    Does your user have a custom template?  Try moving it out and using the standard MS Word template as test?
    Did your user have a previous installation of Adobe Acrobat??  If so, check the Add-ons to see if an older version is still registered with MS Word.

  • I just started a free trial of the Adobe XI product that allows me to create an editable PDF. I'm done creating the form and ready to export it. When I click Export PDF from the File menu, it says Adobe encountered an unexpected error. What am I doing wro

    I just started a free trial of the Adobe XI product that allows me to create an editable PDF. I'm done creating the form and ready to export it. When I click Export PDF from the File menu, it says Adobe encountered an unexpected error. What am I doing wrong?

    Good to know  — there is no such application as "Adobe XI".
    "Adobe" is the name of the company.
    "XI" is indicative of the use of either Acrobat XI or Reader XI.
    Neither Acrobat XI Pro (for which Adobe provides a free, fully functional 30-day trial) nor Adobe Reader XI (the free to download and use PDF viewer that Adobe provides) have  an "Export PDF" entry under "File".
    "Export PDF" only is present in Adobe Reader XI over on the right on the "Tools" panel.
    The "Tools" panel provides a way for a user of Adobe Reader XI to connect to various By Subscription online services (gotta pay eh).
    Export PDF is one of these. A subscription lets you send a PDF file to the online internet service (aka "cloud" service). The service then exports to a supported file format (Word / Excel / ...) and the user selects / directs where the output file is to be saved on the user's local machine.
    Of course to use any of the online subscription services one must have an active (paid up in full) subscription to the service.
    So ---- As described the puzzle pieces don't fit eh.
    What specific Adobe (the company) applications are you using?
    Acrobat XI Pro? Adobe Reader XI? Both? 
    Be well....

  • Javascript error when launching XFA pdf from browser

    Hi all,
    I am trying to use my XFA PDF from a browser. On my local system I have  set up a web server and am launching my PDF from there. However, I am getting a ReferenceError with regards to one of my Javascript functions.
    My PDF has dependency on a javascript file that resides in the Acrobat path as follows:
    C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts\
    When I use my PDF directly from an Acrobat instance, everything works fine. The issue comes up only when launching from server. How do I link the javascript file to my PDF?
    Edit: The user is going to be launching the PDF from the server via a web browser. In such a case where do I place the javascripts?
    Help appreciated,
    Thanks

    @George: thanks for the quick response!
    My JS code contains a readFileIntoStream which I learnt is also to be run under privileged context. (still learning the ropes here.. ).  I have been trying to incorporate the JS code directly into the PDF to get around this privileged context..  but I am unable to find a non-privileged equivalent for readFileIntoStream..
    Basically my users would be accessing the PDF from the server direct via the browser. For my testing purposes I am able to run the PDF directly from my desktop via an Acrobat instance without any hitch as the scripts are folder level like you mentioned. Is it possible for the users to be able to access the javascripts from anywhere on the server rather than directly from the PDF?  Please note, users will not be saving copies of the PDF on to their local machines (in which case we could have pushed the JS file along to their machines) . I need to ultimately run the PDF from browser.
    I hope I am clear..
    Thanks.

  • Run time prompts not appearing when launching BR from a right click menu

    Hi!
    I have a problem when trying to launch a business rule from a right click menu which is assigned to a dataform.
    The rule launches but does not show/ask for the run time prompts as it should do. The run-time prompts should not be hidden (I checked also Eas and data form selections).
    When using the rule form the Tools-Business Rules menu, the rule works fine. It prompts for the required variables and as they are filled in, the rule does what it is expected to.
    Also, when using the same rule attached into a form (and selected "use members on form"&"run on save") the rule works correctly.
    We are using version 11.1.2.1.
    I already have tried restarting Planning services but without success.
    What might cause this?
    kind regards,
    user637777

    Hi!
    I found out from the Oracle knowledge base:
    This issue is caused by unpublished Bug 11064867 - RIGHT CLICK MENUS NOT RENDERING RUN TIME PROMPTS
    In version 931 run time prompts worked correctly when launching them from a right click menu, I checked this out.
    In our current version I got this working (this is kind of a workaround) by adding a new RTP variable (using the same dimension as the original RTP variable). This way I got the rule to "ask for more information" (like what were you asking for? ) and not running the rule without interruptions. This instruction was given in Oracle support (knowledge base).
    kind regards,
    user637777

  • PDF button menu id from PO Page  ?

    HI ALL Experts,
    i want to know about pdf button menu id from PO From ,
    any body know then please give me solution ASAP .
    Thanks and Regards
    Kalpen

    HI nj
    I create one addon for Send Po Layout in pdf .
    so i want to click this menu button  from my page and i pass parameter PO Docnum ,
    then i want to this PO layout attach my Form and send this PDF Layout to client
    its possible ???
    Thanks
    Kalpen

  • Launching Actor From Tools Menu

    I have written a configuration tool(lets call it application ABC for simplicity) within the actor framework for a very large API.  Application ABC was designed/intended to be launched from the Tools Menu in LabVIEW.  For development I ran application ABC directly using a development style "splash screen" that I would run from the project that owned the source code.  My development splash screen has a crude pop-up that allows you to select the VI that you want application ABC to act like it was launched from.  As part of the final stage of development I wrote a VI that uses the App.MenuLaunchApp and AppMenuLaunchVI properties to retrieve the VI to configure.
    Here is where the trouble started.  Application ABC runs well and closes as expected with no sort of odd behavior while closing when run using the development splash screen.  When launched from the Tools menu application ABC acts normally and allows me to run all of the methods/msgs for the actors without any hints of trouble.  Closing application ABC LabVIEW crashes whenever the launch originated from the Tools Menu.  This is very consistent.  
    My guess as of right now is that it has something to with the actor framework running in a private application context (LV.Dialog).  I am assuming that LV.Dialog is making assumptions that I am breaking.
    I haven't tried a simplfied example yet; but I am interested to know if anybody else has tried something like this....  Is the AF Message Maker in the actor framework?
    LV2012SP1
    My customer won't let me share the code.
    I attached the debug output in case that interests anybody.
    Solved!
    Go to Solution.
    Attachments:
    lvlog.txt ‏4 KB
    Crash Dialog.PNG ‏42 KB

    I was able to work around this error...
    First I made a simple example and found that I couldn't recreate the problem(no surprise).  I then started building up the simple example until I realized that I needed to have the actor open up it's own referance to the parent VI(the VI that's tool menu was used) and not use a referance opened by the splash screen.  Even if the referance to the parent VI ref was valid for the actor to use while running it would crash LabVIEW upon closing.  I added the VI name and application service name to the class data of the actor and then used pre-launch init to call a method that would open the parent VI ref.  I should also not that enquing the open parent VI ref method from the splash screen still results in a LabVIEW crash upon closing the actor.
    Fun stuff...
    If anybody wants to chip in as to why this is occuring I would be glad to learn more.

  • How to remove "Save as PDF" from context menu

    The item "Save as PDF" leads to a commercial site called NITRO. I am trying to eliminate it from the context menu. I installed the add-on Menu Edit and changed the item Save as PDF from visible to hidden on my Windows 8.1 PC with Firefox 30. However, the item did not disappear from the context menu. Yet on my PC with Linux Mint 17 with Firefox 30 for Linux Mint the item is gone from the context menu. My PC s linked with Firefox Synch.
    How can I remove this?

    Such an entry in the context menu is likely added by a PDF related extension, so check your extensions.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • Jdk 1.6.0

    hi Now l use the jdk1.6.0 ,but l meet some problem as follows: l have install the jdk1.6.0 and jvm but l can not run jdk1.6.0\demo\ (applet)when it show the error message " can not load java jvm from <\bin\server\jvm.dll>" ,My OS is Microsoft Windows

  • Container Managed Entity Beans and Client Identifier in Oracle

    Is it possible to use Container Managed Entity Beans (EJB with CMP) in a way that the Oracle database sessions still know the individual Client Identifiers of the actual users (not just the Identifier of the proxy user defined in the Connection Pool)

  • IBook screen goes black after unplugging power cord

    I originally posted this topic in the wrong discussion group for iMac G4, the computer is actually an iBook G4. My wife's iBook bought about 2 years ago shows battery 100 percent charged. But when she unplugs the power cord the screen goes black. Can

  • Convert .vi v10.0 to v8.5

    Could someone please convert the follow vi from v10 to v8.5. Thanks! Attachments: Spectral analysis.vi ‏134 KB

  • Sorry server redirect to simple html file hosted on ACE

    I know this question has already been asked and all I'm doing here is to double check to see that the status of this feature is still unsupported?? Is this correct? regards Tyrone