Open,save,view pdf through form

Hi!
1)I have to open a pdf using open dialog box(get_file_name)
2)then saved it to a "new" location without openinig dialog box
3)then view that file from the "new" location.
currently i am using api but "one" dll should be in orant\bin to run this form at every PC.
Host opens dos screen so it is not a good solution.
is there any other oracle built-in to accomplish this task
thanx

Host opens dos screen so it is not a good solution.Please try the following code.
DECLARE
cmd varchar2(4000);
s varchar2(4000);
BEGIN
cmd := 'copy /b c:\forms9iDemos9_0_0_1.zip c:\new_file.zip';
TOOL_ENV.GETVAR( 'COMSPEC', s );
Host( s || ' /c '||cmd, NO_SCREEN );
END;

Similar Messages

  • Error while opening report in pdf through OAF.

    This is my first report through OAF and I followed a couple threads discussed on this but I am unable to debug this problem
    Requirement - User clicks the image and is prompted to open/save pdf result file.It doesnt take any user parameters
    Error is : I get prompted to open/save the pdf file . I click on Open or Save it and then Open, it gives me the following error :
    'could not open because it either is not a supported file or because the file has been damaged(for example , it was sent as an email attachement and wasnt correctly decoded)'
    Steps taken so far :
    1. Created VO with query select a,b,c from Table A
    2. Created a simple xml page, with a torch image : Set Action Type and Event property of the Torch Image Item to FireAction and GenerateReport
    3. Wrote the code in CO and AM to get the data in XMLNode.
    4. I did SOPs , copypasted the xml in notepad saved it as xml, loaded in MSWord and created a template.Viewing pdf generates a pdf here on this data
    5. With "XML Publisher Administrator" Responsibility, I created Data Definition and Template Definition.
    6. I deployed all the files on server and ran the report. It prompts me to open the pdf but it seems corrupted. In Jserv.log, xml gets printed through SOPs.
    One thing I noticed is: <?xml version="1.0"?> is missing from xml.
    please assist me , what am I missing here ?
    Thanks a lot.
    My CO code :
    public class EmpCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    private static final String APP_NAME = "AK";
    private static final String TEMPLATE_CODE = "Emp_Template";
    private static final int BUFFER_SIZE = 32000;
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModuleImpl am= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    am.invokeMethod("initEmpVO");
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModuleImpl am= (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if("GenerateReport".equals(event))
    System.out.println("user clicked the pencil");
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
    try {
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=EmpReport.pdf";
    response.setHeader("Content-Disposition",contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode) am.invokeMethod("getEmpDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    System.out.println(" xml data");
    System.out.println(outputStream.toString()); //outputs the xml correctly
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    System.out.println("1**");
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    System.out.println("2**");
    //Generate the PDF Report.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)am.getOADBTransaction()).getAppsContext(),// AppsContext
    "AK",// Application short name of the template
    TEMPLATE_CODE,// Template code of the template
    "en", //language code of the template
    "US",//Country Code
    inputStream, //// XML data for the template
    TemplateHelper.OUTPUT_TYPE_PDF,//Output type of processed document
    null, //Properties
    pdfFile); //OutputStream where the processed data goes
    System.out.println("3**"); //doesnt print and goes in catch block
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    System.out.println("4**");
    response.setContentLength(b.length);
    System.out.println("5**");
    os.write(b, 0, b.length);
    System.out.println("6**");
    os.flush();
    System.out.println("7**");
    os.close();
    System.out.println("8**");
    catch(Exception e)
    System.out.println("9**");
    response.setContentType("text/html");
    throw new OAException(e.getMessage(), OAException.ERROR);
    System.out.println("10**");
    pageContext.setDocumentRendered(false);
    System.out.println("11**");
    ///////////////------it prints only 1**, 2** and goes in catch block to print 9**
    AM Code :
    public void initEmpVO()
    EmpVOImpl vo = getEmpVO1();
    if(vo == null)
    {       MessageToken errTokens[] = { new MessageToken("OBJECT_NAME", "EmpVO1")   };
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    } else
    {        vo.executeQuery();      }
    public XMLNode getEmpDataXML()
    OAViewObject vo = (OAViewObject)findViewObject("EmpVO1");
    XMLNode xmlNode = (XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
    return xmlNode;
    }

    Hi,
    Basically the reason for this is that your "PDF file" is not populated with the correct pdf structure that Adobe recognizes (i.e. save the file and look at it in notepad, you'll see it's probably in html or a java stack trace). 2 reason's this happens
    1.You do not have the necessary library files attached to your project i.e. for XMLPublisher you will need $JAVA_TOP/oracle/apps/fnd/* and $JAVA_TOP/oracle/apps/xdo/*. Zip these up and add them to your libraries section of your project.
    2. Your XML Publisher properties are not configured correctly. (usually causes a blank file) To change this go to (E-Business Suite>XML Publisher Administrator>Administration>General>Temporary Directory). Depending on what your doing you will need to point this to either a server location or a local location. i.e. when uploading defintion/template and previewing it requires a server-side location to generate a temporary file for the preview, when running a jdeveloper project it will look for a local directory to generate the temporary file. If it cannot find the directory it will throw an error to System.out, and send the HttpServletResponse container a 0bytes file. For local development on a windows box I suggest setting the "Temporary Directory" to something like "C:\oracle" and ensure that folder exists.
    Hope this helps
    Brad

  • I have Adobe Acrobat 8 Standard and I had to reload it on my computer due to my hard drive crashing. Now I can only open and view PDF's  and I cannot edit them as I could before such as using Tools Comment

    I have Adobe Acrobat 8 Standard and I had to reload it on my computer due to my hard drive crashing. Now I can only open and view PDF’s  and I cannot edit them as I could before such as using Tools>Comment&Markup or Tools>Advanced Editing>TouchUp Text Tool. All the functions are greyed out. Please advise.

    What's your OS? Acrobat 8 is not compatible with any modern OS.
    On Thu, Jan 15, 2015 at 4:16 PM, thomasc1234 <[email protected]>

  • I am not able to open or view PDF files on my ipad 4th gen.

    I am not able to open or view PDF files on my ipad 4th gen.

    Hello,
    This looks this issue is specific to this particular banking site and we definitely want to know more to help resolve this issue. It is likely that this particular functionality is not supported on Firefox and I would suggest that you report this to the bank and request them to support it soon.
    That said, there are a few things you can do from the details provided in the [[Websites don't load - troubleshoot and fix error messages]] SUMO article. Specifically, the section about [[Websites look wrong or appear differently than they should]] and reporting the website might help us provide more information.
    If this is a banking site used by any of the other volunteers who are willing to dig more to find out why, they will try to provide the resolution sooner.
    I know this is not really a resolution that will help you, but given that I don't have much information as to what is the offending part of the website causing the issue, I can only suggest this much.
    Thank you

  • IE opens previously viewed PDF after Reader 10 update

    We recently updated to Reader X (10.1.1)  Some users view portfolios through Equifax.  The documents are .pdfs and when they browse through the portfolio and open multiple documents the previous document opens for the previous customer.  Any other portfolios open have the same result.  The initial .pdf doc opens for all subsequent tries. 
    Now we resolved the issue by changing the IE setting under Temp Internet Files and History Settings to have the page Check for newer versions of stored pages - Every time I visit the webpage.  My question is what changed from previous versions of Adobe Reader to cause this IE setting to be required to change and is there a way within Reader we could set a value so that we don't have to adjust our IE Policy?  Checking for stored pages everytime can slow browser performance.
    Rodney

    Hi,
    I do not see any reason for this to not work.
    Is there any difference between the preferences for RX and RXI. Please go to "edit" -> "Preferences" -> "Security(Enhanced)" and uncheck "Enable protected mode at startup".
    Are you able to open any pdf from command line with the same command:
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"  <<PDF_FILE>>
    Thanks,
    Amish.

  • Unable to open and view PDF's

    I am having trouble viewing PDF files from Kno, Dropbox, MegaApp, and also through my online school website. I have tried numerous times with the same end result. Please help.

    Hi harris924,
    Could you please share some of these sample PDFs with us at [email protected] so we could investigate the issue?  Also, please confirm exact steps you're following to reproduce the issue.
    Thanks,
    Gaurav

  • How to get a save-enabled PDF Signature Form on SharePoint

    Hello all,
    My first time posting. I did numorous searches and watched every training video I can find, but I have been unable to successfully complete this task.
    I have a PDF form, it is an approval sheet that must be maintaind for the entire lifecyle of the project.  At each step in the project diffrent people must sign the form stating that the step is complete.
    The form has been created and has approx 30 signature blocks.  The form needs to be saved on a SharePoint and accesed by diffrent people at each stage, some internal to my company and some external.  Some users have Acrobat but most have Reader (verious levels).
    What we are looking for is the ablity to check-out the pdf, sign, and check back-in. 
    We have tryed to save as a standard form, but then the user cannot save/check-in.  So we set it up for distribution and now it can be saved but its sent as a email back to our office assistant. We have tred using the distribute to SharePoint, but it only creates a response file and still send the email to the office assistant.  No emails are needed, just a form with the current signatures in it.
    I tryed just loading the form to the SharePoint but had the same issues (standard = no save capblity) (distributed = email).
    Is this possable and if so can someone please point me in the right direction.
    Any and all help is appreciated.

    SharePoint Integration was introduced in Acrobat X. So the signers will have to be on Acrobat X (latest patch 10.1.4) and above, to be able to check out the form from SharePoint and sign it. Just saving the form to SharePoint server and checking out from there should solve your purpose with Acrobat/Reader 10.1.4.You dont need to even distribute it.
    HTH

  • View pdf through ole

    Hi!
    i am using ole to display PDF file in form6.
    using this code on when button pressed
    DECLARE
    item_id ITEM;
    item_name VARCHAR(25) := 'OLEITEM';
    BEGIN
    item_id := Find_Item(item_name);
    IF Id_Null(item_id) THEN
    message('No such item: '||item_name);
    ELSE
    Initialize_Container(item_id,'c:\new\jsp2.pdf');
    END IF;
    END;
    when i click button, pdf icon is load into ole. when i double click that ole, pdf file opens but in its own window, not in ole item.
    1-How i can open that pdf inside ole item?
    i have check property ole resize style but no avail.
    also checked excel file it opens in ole item, but pdf causing problem.
    any help
    thanx

    Suplicate post, see
    pdf through ole

  • HT1338 cannot open or view pdf files???

    i cannot view pdf files on my mac when i try to open them. Can anyone help?

    Is it a single PDF file, or any PDF file?
    You should be able to open using Adobe Reader or Preview.
     Cheers, Tom

  • Open PDF through forms in apps

    I have a requirement where in I need to open a pdf document on click of a button. This document is a static doc for guideline/help purpose (for users accessing the form from apps). I want to know the best way to handle this. I can store the document in a table in the database but I do not know how to open/invoke it through froms in apps environment.
    we are using forms 10g and are in R12.
    Thanks in advance.

    See your /forms/server/forms.con file. You can see that some virtual directories are defined, for instance /forms/html
    AliasMatch ^/forms/html/(..*) "C:\DevSuiteHome_1/tools/web/html/$1"The physical directory is located on the Application Server.
    For a single test, you could put your PDF in the physical directory, then display the document within Forms via the Web.Show_Document() built-in
    Web.Show_Document('/forms/html/mydoc.pdf','_blank')You can also create new virtual directories in this file to handle your docs, for instance :
    AliasMatch ^/forms/pdf/(..*) "C:\DevSuiteHome_1/tools/pdf/$1"Francois

  • How do you save a PDF fillable form with a Samsung Tablet and still continue to have access to the original document?

    We are using the Samsung Note and have uploaded a PDF form for fieldwork crews to enter vegetation data. When we have filled in the form there is no option to save the form under a different name but rather the form simply saves itself with the most recent information placed in it. We understand that you can send it through Acrobat.com to your account but the tablet will not access this site while in the PDF app. Does anyone know of an app or a way that we can create individually saved files and still have access to the original on the tablet?

    It can also work if you certify the document and each user chooses to trust it to execute privileged JavaScript, which may be feasible in this setting. The method you'd use is doc.saveAs: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.524.html
    Also, read the following tutorial: http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

  • IPhone users unable to view PDF fillable form data?

    I've created a form that my staff use to send quotes to our customers.
    The form is sent via email using the submit a form button as 'PDF The complete document'.
    I spent several days testing the form to ensure that everything worked correctly and as far as I could tell everything seemed fine.
    Unfortuntately, several of our customers who own iPhones have informed us that the form arrives blank. None of the fields are showing any data or information that my staff filled in.
    I've read several posts online and they all suggest this is to do with the version of Adobe that is pre-installed on iOS devices. If Adobe Reader is downloaded on the iPhone it should read the form properly.
    Is there any way around this? Ideally I don't want my customers to have to download something before they can read our quote.
    Also several of the text fields have javascript attached to them which I would like to keep, such as the 'Link' text field (it has a hyperlink javascript attached). I considered sending the quotes as a .jpg file instead but this would mean losing these features which took so long to build into the quote.
    I've attached a sample version of my form in case it helps.
    Sample
    Any advice would be much appreciated.
    Thanks,
    Sabri

    I'd suggested flattening the form fields, which converts them to regular page contents. There won't be any interactive fields after you do this though. It is possible to flattten just certain fields so that your script would still work if the form is viewed in a compatible PDF viewer, but this would require a custom script.
    Here's a link to a free JavaScript-based tool that you can use to flatten the fields: http://www.uvsar.com/projects/acrobat/flattener/
    It could be customized to exclude certain fields.

  • Help - the latest version of firefox 12 will not open or view pdfs?

    Help - I upgraded to latest version of Firefox 12 2 days ago and will not open pdfs or view.. worked fine before?

    Isn't that beta/nightly build? Why did you install it, uninstall it and reinstall 11.
    http://download.mozilla.org/?product=firefox-11.0&os=osx&lang=en-US

  • Problems viewing PDFs with form objects

    I have a document I can't view correctly in Acrobat Reader XI. The document includes some form objects like radia buttons and check boxes. When I view the document in Adobe Reader, i only get square boxes. If I use Foxit Reader, I can se the objects normally. I have taken a screendump from the same PDF document, one using Acrobat Reader and the other using Foxit Reader. As you can see, there is a big difference.
    The screendump above is from Adobe Reader XI
    And this creendump is from Foxit Reader.
    Why cant Acrobat display the form objects? It looks like a font problem. I have tried to install asian font pack. Is there any other font packs that could solve this problem?
    Best regards
    René

    How were these forms created?  I have seen (in this forum) similar cases when forms were created in some none-standard ways.
    See if the attached test document shows correctly in Reader XI.

  • Error 103:103, can not open/download/view pdf files online

    when i try to view/download/open any pdf document online following error window shows, please help what to do
    Adobe PDF Document
    There is a problem with Adobe Acrobat/Reader.
    If it is running, please exit and try again. (103:103)
    OK  

    OS - vista home basic - service pack 1
    ADOBE READER VERSION - latest as i uninstalled previous and re downloaded new 10.1.4 (problem still           persisting and same)
    YES - adobe acrobat is installed on my computer
    YES - for reapirs i uninstalled and then reinstalled still problem there.
    my system is a 32 bit system , i hope that is not the reason for problem.
    thank you

Maybe you are looking for

  • Can't sync 8330 to Outlook 2010. Keep getting error message.

    I just got outlook 2010 and am trying to set up my 8330 to sync with it. I cannot sync the address book and the calendar because I keep getting  an intellisync error message that says "One or more configured folders is not available. Update folder ma

  • How do i create a background image that i can place objects over (editiabel region)

    To whom it may concern: I apologize my dreamweaver skills are a bit rusty to say the least-sorry. Anyway, i need to be able to place objects and edit regions of my website that i have a background image on (i have the opacity turned down so it appear

  • Run a dummy report without a database connection

    hi, I want to run a dummy report, so i dont want to connect to a databse. Is it possible to do this because when i create a report (report only contains some display items and some text fields but they are not connected to any table, and in the data

  • Need Help with Creative Suite 6 Design Standard.

    I was working with a tech named Ashok Kumar Mohanty. I was sharing my screen with him and trying to install Creative Suite 6 Design Standard. We lost each other. He had me set up a new administer account but I can't get online with it because it has

  • CPU consumptin / JBuilder

    This might not really be a Swing topic - I'm not sure. It's just that I am using JBuilder for the first time (we are using JBuilder X) and happen to be doing a Swing project also. Recently my app has begun to chew up large amounts of CPU resources as