File handling in Content areas

Where is it determined what happens when you select a file in a content area folder? If I want to only be able to download the file and not try to read it, is there a setting that may be changed to allow this?
Thanks,
Chris

Chris,
We just do whatever the browser is configured to do with the file type. There are no special settings available in Portal.
Regards,
Jerry
null

Similar Messages

  • Images present in datagridview not exporting to file only text contents are generating into PDF file..

    Hi Everyone,
       I have created simple Desktop app in that I trying to generate PDF file from Datagridview...when I click on ExportPDf button Pdf file is generation successfully but the issue is in that pdf whatever the images has present in datagridview that images
    are not generation into PDF only the text contents are Present in PDF file.
      Does any one can tell me how to generate the PDF file along with images.
    Here is my code:
      private void btnexportPDF_Click(object sender, EventArgs e)
                int ApplicationNameSize = 15;
                int datesize = 12;
                Document document = null;
                try
                    SaveFileDialog savefiledg = new SaveFileDialog();
                    savefiledg.Filter = "All Files | *.* ";
                    if (savefiledg.ShowDialog() == DialogResult.OK)
                        string path = savefiledg.FileName;
                        document = new Document(PageSize.A4, 3, 3, 10, 5);
                        PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(path + ".pdf", FileMode.Create));
                        document.Open();
                        // Creates a phrase to hold the application name at the left hand side of the header.
                        Phrase phApplicationName = new Phrase("Sri Lakshmi Finance,Hosur-560068", FontFactory.GetFont("Arial", ApplicationNameSize, iTextSharp.text.Font.NORMAL));
                        // Creates a phrase to show the current date at the right hand side of the header.
                        Phrase phDate = new Phrase(DateTime.Now.ToLongDateString(), FontFactory.GetFont("Arial", datesize, iTextSharp.text.Font.NORMAL));
                        document.Add(phApplicationName);
                        document.Add(phDate);
                        iTextSharp.text.Image img = iTextSharp.text.Image.GetInstance("D:\\logo.JPG");
                        document.Add(img);
                        iTextSharp.text.Font font5= iTextSharp.text.FontFactory.GetFont(FontFactory.TIMES_ROMAN, 5);
                        iTextSharp.text.Font font6 = iTextSharp.text.FontFactory.GetFont(FontFactory.HELVETICA_BOLD, 6);
                        //float[] columnDefinitionSize = { 2.5f, 7.0f,6.6f, 8.6f, 6.6f, 5.0f, 4.5f, 7.0f, 6.3f, 7.0f, 3.5f, 6.0f, };
                        PdfPTable table = null;
                        table = new PdfPTable(dataGridView1.Columns.Count);
                        table.WidthPercentage = 100;
                        PdfPCell cell = null;
                        foreach (DataGridViewColumn c in dataGridView1.Columns)
                            cell = new PdfPCell(new Phrase(new Chunk(c.HeaderText,font6)));
                            cell.HorizontalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.VerticalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.BackgroundColor = new iTextSharp.text.BaseColor(240, 240, 240);
                            table.AddCell(cell);
                        if (dataGridView1.Rows.Count > 0)
                            for (int i = 0; i < dataGridView1.Rows.Count; i++)
                                PdfPCell[] objcell = new PdfPCell[dataGridView1.Columns.Count];
                                for (int j = 0; j < dataGridView1.Columns.Count - 0; j++)
                                    cell = new PdfPCell(new Phrase(dataGridView1.Rows[i].Cells[j].Value.ToString(), font5));
                                    cell.HorizontalAlignment = PdfPCell.ALIGN_LEFT;
                                    cell.VerticalAlignment = PdfPCell.ALIGN_LEFT;
                                    cell.Padding = PdfPCell.ALIGN_LEFT;
                                    objcell[j] = cell;
                                PdfPRow newrow = new PdfPRow(objcell);
                                table.Rows.Add(newrow);
                        document.Add(table);
                        MessageBox.Show("PDF Generated Successfully");
                        document.Close();
                    else
                        //Error 
                catch (FileLoadException fle)
                    MessageBox.Show(fle.Message);
                    MessageBox.Show("Error in PDF Generation", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
    Runtime Gridview content:
    Generated PDF File:
    Thanks & Regards RAJENDRAN M

    Hi Everyone,
       I have created simple Desktop app in that I trying to generate PDF file from Datagridview...when I click on ExportPDf button Pdf file is generation successfully but the issue is in that pdf whatever the images has present in datagridview that images
    are not generation into PDF only the text contents are Present in PDF file.
      Does any one can tell me how to generate the PDF file along with images.
    Here is my code:
      private void btnexportPDF_Click(object sender, EventArgs e)
                int ApplicationNameSize = 15;
                int datesize = 12;
                Document document = null;
                try
                    SaveFileDialog savefiledg = new SaveFileDialog();
                    savefiledg.Filter = "All Files | *.* ";
                    if (savefiledg.ShowDialog() == DialogResult.OK)
                        string path = savefiledg.FileName;
                        document = new Document(PageSize.A4, 3, 3, 10, 5);
                        PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(path + ".pdf", FileMode.Create));
                        document.Open();
                        // Creates a phrase to hold the application name at the left hand side of the header.
                        Phrase phApplicationName = new Phrase("Sri Lakshmi Finance,Hosur-560068", FontFactory.GetFont("Arial", ApplicationNameSize, iTextSharp.text.Font.NORMAL));
                        // Creates a phrase to show the current date at the right hand side of the header.
                        Phrase phDate = new Phrase(DateTime.Now.ToLongDateString(), FontFactory.GetFont("Arial", datesize, iTextSharp.text.Font.NORMAL));
                        document.Add(phApplicationName);
                        document.Add(phDate);
                        iTextSharp.text.Image img = iTextSharp.text.Image.GetInstance("D:\\logo.JPG");
                        document.Add(img);
                        iTextSharp.text.Font font5= iTextSharp.text.FontFactory.GetFont(FontFactory.TIMES_ROMAN, 5);
                        iTextSharp.text.Font font6 = iTextSharp.text.FontFactory.GetFont(FontFactory.HELVETICA_BOLD, 6);
                        //float[] columnDefinitionSize = { 2.5f, 7.0f,6.6f, 8.6f, 6.6f, 5.0f, 4.5f, 7.0f, 6.3f, 7.0f, 3.5f, 6.0f, };
                        PdfPTable table = null;
                        table = new PdfPTable(dataGridView1.Columns.Count);
                        table.WidthPercentage = 100;
                        PdfPCell cell = null;
                        foreach (DataGridViewColumn c in dataGridView1.Columns)
                            cell = new PdfPCell(new Phrase(new Chunk(c.HeaderText,font6)));
                            cell.HorizontalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.VerticalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.BackgroundColor = new iTextSharp.text.BaseColor(240, 240, 240);
                            table.AddCell(cell);
                        if (dataGridView1.Rows.Count > 0)
                            for (int i = 0; i < dataGridView1.Rows.Count; i++)
                                PdfPCell[] objcell = new PdfPCell[dataGridView1.Columns.Count];
                                for (int j = 0; j < dataGridView1.Columns.Count - 0; j++)
                                    cell = new PdfPCell(new Phrase(dataGridView1.Rows[i].Cells[j].Value.ToString(), font5));
                                    cell.HorizontalAlignment = PdfPCell.ALIGN_LEFT;
                                    cell.VerticalAlignment = PdfPCell.ALIGN_LEFT;
                                    cell.Padding = PdfPCell.ALIGN_LEFT;
                                    objcell[j] = cell;
                                PdfPRow newrow = new PdfPRow(objcell);
                                table.Rows.Add(newrow);
                        document.Add(table);
                        MessageBox.Show("PDF Generated Successfully");
                        document.Close();
                    else
                        //Error 
                catch (FileLoadException fle)
                    MessageBox.Show(fle.Message);
                    MessageBox.Show("Error in PDF Generation", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
    Runtime Gridview content:
    Generated PDF File:
    Thanks & Regards RAJENDRAN M
    Hello,
    Since this issue is mainly related to iTextSharp which belongs to third-party, I would recommend you consider posting this issue on its support website to get help.
    Maybe the following forum will help.
    http://support.itextpdf.com/forum/26
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem upload too large file in a Content Area ORA-1401

    Hi All
    I have a customer who is trying to upload a file with a too large name in a content area.
    If the filename is 80 characters, it works fine.
    But if the filename is upper or 80 characters the following error ocurred:
    ORA-01401: inserted value too large for column
    DAD name: portal30
    PROCEDURE : PORTAL30.wwv_add_wizard.edititem
    URL : http://sbastida-us:80/pls/portal30/PORTAL30.wwv_add_wizard.edititem
    I checked the table: WWV_DOCUMENT and it have a column name: FILENAME is defined like VARCHAR2(350).
    If i run a query on this table, the filename column stores the filename of the file uploaded.
    Is this a new bug? may i fill this bug?
    Do you have any idea about this issue?
    Thanks in advance,
    Catalina

    Catalina,
    The following restrictions apply to the names of documents that you are uploading into the repository:
    Filenames must be 80 characters or less.
    Filenames must not include any of these characters: \ / : * ? < > | " % # +
    Filenames can include spaces and any of these characters: ! @ ~ & . $ ^ ( ) - _ ` ' [ ] { } ; =
    Regards,
    Jerry
    null

  • How to zip files in a content area

    Hi!!
    We have a lot of documents in a content area, and every day the number of documents is going up. The question is, if we can zip these documents or something similar.

    If you're asking about compressing the files in the repository, or adding a bunch of items to a zip file, neither of these features are currently available.
    You would have to download the files, add them to a zip on the desktop, and then upload the new zip file.
    Regards,
    Jerry
    PortalPM

  • Internal File Names within Content Areas

    I have a problem where I have loaded up a series of inter-linked HTML files created in an HTML editor (e.g. Dreamweaver). They all exist within a folder and all the links work. As soon as I amend a file and reload it, it gets a new name on the database (for example index_0.htm and then index_1.htm). Therefore because the name has changed the links no longer work. I have item versioning switched off in the content area and the folders where the items reside.
    Is there any way around this problem?
    null

    This behavior has been fixed for Portal 3.0.8, which is going to be part of 9iAS release 1.0.2.1, due out later this month.
    In the meantime, perhaps you could have dreamweaver update the links for your files as part of a dreamweaver "site" definition. If you update the name for one file say from ("myfile" to "myfile_1", all the other links would then be automatically updated by dreamweaver to reflect that). What version of Portal are you currently using? 3.0.6 or 3.0.7?

  • Error Creating File Items in Content Area

    Received the following error message when trying to create an item in a content area:
    An unhandled exception has occurred, ORA-01403: no data found.
    I checked in the Apache error_log file and the only messages I see relate to portal30.wwv_add_wizard.edititem and portal30.wwv_additem.additem (had to be described for execution).
    Any suggestions? Thanks

    This is an unusual problem. Please work with Oracle Support to resolve it.
    Regards,
    Jerry
    PortalPM

  • Zip file upload to content area

    Has anyone tried zipping up a huge folder on the filesystem, say around a 100 files and uploaded the zip to a content ara folder? I could successfully upload the zip file but and then used the unzip link next to the uploaded content. It unzips as well, but when I click on the folder to view the unzipped files, before it could show me the 100 odd files, the server times out. I believe it is due to the number of files in a single folder. If I do the same thing with a hierarchy of folders and sub-folders containing only 10s' of files it works and displays the page to me with all links working.
    I hope you must have tried this, and pls. help me and provide me an alternative.

    check out this OSS Note No. 925327
    <a href="http://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=925327">HTTP error: 411 Length Required in upload to content server</a>
    Regards
    Raja

  • HTML Files To Be Displayed In Content Area

    Is there a way (or this feature going to be implemented in future release) of displaying html file (item type = file) in the content area when a user clicks on it's link?
    null

    We are looking at ways of addressing this problem, and expect to have something in the next major release (planned for calendar year Q4).
    Regards,
    Jerry

  • Help with interMedia Text and files into Content Area!!

    Hello
    I need to use interMedia text to search into the content of some files(.pdf and .doc) that have been uploaded to a content area. I have found that I can use operators like contains, soundex(!) and some other but my problem is that I have no idea how to create my query in order to search into the files.
    Please can anybody give me an example of using intermedia to search into some files stored in a content area.
    I know that by clicking on the portal home, Search Settings under interMedia Create index the content of my files are indexed but I still don't understand how to search over this content.
    Thanks in advance
    Ana Lasprilla

    Hi
    I don't want to use this portlet because It can be customize the way I need it to, so I want to build my own searcher that's why I need to know how can I access the files into my content area with intermedia.
    Another idea please
    Ana Lasprilla

  • Open a pdf document in portal content area

    All,
    I have a folder in 'Public Document' with a pdf file. A KM Navigation iView points to the folder with the pdf file. When a user clicks on the pdf file it opens in a seperate window. Is it possible to open the pdf file in the content area of the portal.
    Thank you.
    SAP Partner

    Hi,
    Try to set the "Target Window Type" in the corresponding resource or collection renderer setting, see http://help.sap.com/saphelp_nw04/helpdata/en/50/041142e862654ca98ced1607386c9c/frameset.htm and the same for the collection renderer settings for details.
    Hope it helps
    Detlev

  • How to customize the default add item in a content area

    Hi!! I want to know what can I do to introduce a file in a content area, but I don't want to use the default page that portal use. I want to customize the add item option, the same that I have done with the folders. The problem that I have is that I need the user to have the file on his/her pc, and the api add_item needs the file on unix, where de DB is installed.
    If anyone has any idea, please help me.

    Hi All,
    Thanks for all your reply, but maybe i didn't describe my problem clear. My problem for the combobox is that once the combobox has a selected value, then there is no way to clear it in the UI even I remove all the items in its ValidValues. From the user interface, the selected value still stays there but actually this combobox is empty and does not have any items. My question is how can I remove the current selected item in the combobox.
    Thanks,
    Lan

  • Adobe Form - Content Area can't be moved

    I'm working on an ADOBE invoice form. I set up the company logo, ship to and sold to address and footer as boiler plate objects on the master page. The other data like table header and line item data are in the body page (which is flowed) that I call " Main". Now my problem is: I want to make the item data print starting from 10 cm from the top.I cannot move the content area down to the 10 cm level so now my MAIN body page starts from X and Y coordinates = 0 and the data starts printing from that position spilling over the logo and all other header data. I tried leaving the content area alone and only move the MAIN body page. It does not move down either. How do I fix this problem? Is the content area not supposed to be moved down or do I have a bug in my designer? Thanks.
    Other details: EEC6.0 NW2004s, Livecycle Designer 7.1, Windows XP professional.

    Thanks both of you. I think my question is answered. It is possible to move and resize the content area in the master page. I tried it but does not still work for me. I changed the underlying XML file and the content area moved so I think it is definitely a problem with the designer. Thanks.

  • Updating Content Area File Items

    I have added an item (type FILE) to one of my content areas. This file is an HTML document named Oracle.HTML. The problem that I am having is that if I have to update the Oracle.HTML file and re-upload that file to the database, Portal is kind enough to rename the file (Oracle_0.HTML). If I do it again (Oracle_1.HTML).
    This is problematic in a web environment where we have links to other documents.
    I have set item versioning to NONE on the content area. I have also tried setting the item versioning to simple and then telling Portal to overwrite current version when updating the item. Neither of these help out.
    Is there a way around this? Is there a way to directly load the BLOB into the database?
    Help, I cannot have HTML documents in my content areas that link to each other!

    Mark,
    You are hitting bug 1531318. A workaround to this bug is to zip the files you want to update. Add the zipfile to the content area, and unzip the files. In this way, the original file names are kept. This works for more files simultaneously, but also for 1 file at a time.
    The bug should be fixed with portal 3.0.8.6.4 , but in my case, oracle customer support could send me two updated packages, which solved the problem.
    Hth,
    Ton

  • Limited File size uploaded to Content Area

    Is it possible to limit the file uploaded as an item in the content area/folder ?

    Its a benign error. It has to do with flexible parameter passing. You can ignore it.
    Recently I have been receiving the following error in my apache error log file...It tells me to refer to the doc for ways around this issue...I am unable to locate any doc on this issue. I have looked in the iAS plsql doc as well. Now this comes and goes as well. For the most part clients can upload files successfully, but once and a while this error occurs. The error causes the 404 error in the browser
    [Tue Oct 29 16:41:25 2002] [warn] mod_plsql: /pls/portal30/PORTAL30.wwv_add_wizard.edititem had to be described for execution. Refer to the PL/SQL GateWay documentation on how to avoid this
    mod_plsql: /pls/portal30/PORTAL30.wwv_edit_tab.edititem had to be described for execution. Refer to the
    PL/SQL GateWay documentation on how to avoid this
    Any help would be greatly appreciated...
    I am on 30980 portal at the moment...we are upgrading in the next couple weeks. Is this a known bug in a specific version??

  • How is the upload/download file content area implemented

    Hello all,
    I have read that one content area4s purpose is to allow users to store documents. How is it implemented? I mean,
    How can a user upload/download doc to a specific folder? Should this functionality be implemented by us or does
    Oracle Portal provide any mechanism for doing this?
    Thansk a lot

    Beatriz,
    You can specify privileges on the folder based on users/groups. I am not sure I understand "I need to restrict its access just only to add element-"
    Are you trying to ensure that people can upload docs, but not make any style changes ? Right now, if you can add a document
    , then you can also delete it.
    Also, I have listed a few links below that you might find helpful.
    http://portalstudio.oracle.com/servlet/page?_pageid=832&_dad=ops&_schema=OPSTUDIO
    http://www.amazon.com/exec/obidos/ASIN/0072222492/qid=1023990826/sr=8-3/ref=sr_8_3/002-0139635-0918453
    http://www.amazon.com/exec/obidos/ASIN/0130600377/qid=1023990826/sr=8-2/ref=sr_8_2/002-0139635-0918453
    hth
    HEllo again,
    I have found that one way to do that upload is through 'add element' -->file item in the content area.
    We have a group-defined structure and I need to restrict its access just only to add element--> Is it possible?If so, how?
    What are the privileges I have to set to allow a user to add elements in a content area? At this moment we have:
    * In the content area access tab : user X-->Administer
    *iN THE page's content area, acces tab-->Manage
    If this userX connects and tries to edit the content area--> add element, the item list shows no value it4s in empty. What
    else steps should I follow.
    I would thank any idea

Maybe you are looking for

  • Call to a possibly undefined method

    I am having a real problem with using two different Tile Lists in one movieClip I keep getting: call to a possibly undefined method trousers1 call to a possibly undefined method trousers2 call to a possibly undefined method trousers3 call to a possib

  • External Table Auth while Upgrading 11g

    What happens with External Table Authentication When we upgrade RPD from 10g to 11g? Please provide some assistance on that. Thanks NK

  • Problem with partial reads of HDF5 dataset

    I'm having a problem figuring out how to to a partial read of an HDF5 dataset using LVHDF5 by Jason S. I can save a dataset in a file, and I can read it out whole, but I can't figure out how to read a portion of it. For example I save a 235x235x1024

  • How to create a Project with DI API in C# ?

    All I have right now is that : SAPbobsCOM.IProject Project = (SAPbobsCOM.IProject)oCompany.GetBusinessObject(BoObjectTypes.??? See Sales Order BP Project in Accounting

  • Error 2912 No more threads

    Hi folks, Is this a known error? One of my hosts is showing as "Needs Attention" with this error alongside the Refresh Host - System Job Command: Error (2912) An internal error has occurred trying to contact an agent on the hyperv1.ms.domain.local se