Json file in message box

Hi
Is there a way i can read my json file stored in my folder in the message box i have tried the with the code below but keeps getting error
//Message box code
List<string> strings = new List<string>() {    "Friday 16Th 6PM", "Sunday 18TH 10AM & 7PM", "Wednesday 21st 6PM", "Friday 23RD 6PM", "Sunday 25th 10AM & 7PM", "Wednesday
28th 6PM", "Friday 30th 6PM", };
        public ListPicker()
            InitializeComponent();
            lbx.ItemsSource = strings;
            lbx.SelectionChanged += lbx_SelectionChanged;
        void lbx_SelectionChanged(object sender, SelectionChangedEventArgs e)
            value = lbx.SelectedIndex;
            switch (value)
                case 0:MessageBox.Show("");
                    break;
                case 1: MessageBox.Show("");
                    break;
                case 2: MessageBox.Show(" ");
                    break;
                case 3: MessageBox.Show(" ");
                    break;
                case 4: MessageBox.Show(" ");
                    break;
                case 5: MessageBox.Show("");
                    break;
        public int value { get; set; }
//Json file reference code
        string filepath = @"Assets\resources.json";
                        StorageFolder folder = Windows.ApplicationModel.Package.Current.InstalledLocation;
                        StorageFile file = await folder.GetFileAsync(filepath); // error here
                        var data = await Windows.Storage.FileIO.ReadTextAsync(file);
Thank you in advance and reply soon
Jayjay john

Hi
I implemented a method in my app for json files in folder to read in a message box when i try to run in the emulator it throws the following exception "An exception of type 'System.NotImplementedException' occurred in DevotionJson.DLL but was not handled
in user code"
Kindly view my code below for necessary correction
CustomMessageBox cmb;
        private void openMsgBox(object sender, RoutedEventArgs e)
            // create new Stack panel
            StackPanel sp = new StackPanel() { Orientation = System.Windows.Controls.Orientation.Vertical };
            //get policy text from file
            string policy = getPolicy();
            //Create new label
            TextBlock tb = new TextBlock()
                Text =policy,
                TextWrapping = TextWrapping.Wrap,
                FontSize = 25,
            //Create new Scroll viewer
            ScrollViewer sv = new ScrollViewer()
                VerticalScrollBarVisibility=ScrollBarVisibility.Auto,
                Height=500,
            // add texblock in scroll viewer
            sv.Content = tb;
            //Add the controls to stack panel
            sp.Children.Add(sv);
            // Create new Custom Message Box instance
            cmb = new CustomMessageBox()
                // Set its content to our Stack Panel
                Content = sp,
                Opacity = 0.98,
                // Left button of message box Button
                LeftButtonContent = "Accepts",
                //Right button of message Box
                RightButtonContent="Reject",
            //Handle msg box click
            cmb.Dismissing += cmb_Dismissing;
            //Show the message box...
            cmb.Show();
        private string getPolicy()
            throw new NotImplementedException();
        void cmb_Dismissing(object sender, DismissingEventArgs e)
            if (e.Result==CustomMessageBoxResult.LeftButton)
                MessageBox.Show("Now you can use this app.");
            else
                //do what you want
                MessageBox.Show("It's mandatory to accepts the T&C to use this app. Exiting from app.");
                App.Current.Terminate();
        public string getPolicy(string JsonfilePath)
            string strText = "This";
            using (StreamReader r = new StreamReader("BibleInYear/Bible1.json"))
                string json = r.ReadToEnd();
                dynamic array = JsonConvert.DeserializeObject(json);
                //... read text from json file
            return strText;
I await your response and thank you in advance
Jayjay john

Similar Messages

  • How to force file download message box appear????

    I download file from oracle
    how to set response header to make download message box appear??????
    I just see lots of :
    ���?������ Y�Dl?��>��hn��?g�x~����?7���}��h`a�F��?P?!P��*�X��?/?U ��A?|?/??$�T=��t ��?^!i��f��/?]?�c��7?�UZ�Gz?��SbU��p���Q�T������?��e JyN�/�X^��w��/Bo�k�O��������^��$��?�������yg���C(??[�[+?��R�����p��?te@?��o��?M:D�_s#h�����H��g/?�nE"�PQI���A!��bE������?C`A�������?V��2�^��<�NK?[��k�k$??yJ>?sg-hm�AW(���S��?l[��[���� ��?dL4��6!�N��*���N?Q2?���JoP��>|�sb�_�^�_����~�r��X
    on the screen
    I am a chinese, happy new year everyone!

    and the file.size() is semicode, meaning there isnt a function for it. So you might end up with something like this
         response.setContentType( "application/zip" );
         String fileName = Globals.getAttachmentLocation() + readFile;
         response.setHeader("Content-Disposition", "attachment;filename=" + fileName);
         BufferedInputStream bufferedInputStream = new BufferedInputStream( new FileInputStream( fileName ) );
         ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
         int start = 0;
         int length = 1024;
         byte[] buff = new byte[length];
         while ( bufferedInputStream.read( buff, start, length ) != -1 ) {
              byteArrayOutputStream.write( buff, start, length );
         bufferedInputStream.close();
         response.setContentLength( byteArrayOutputStream.size() );
         response.getOutputStream().write( byteArrayOutputStream.toByteArray() );
         response.getOutputStream().flush();

  • File download dialog box problem!

    Hi,
    How do you force file download message box to use specified file name instead of JSP or servlet name.
    I am using:
    // code in attachment.jsp
    <%
    response.setContentType(mimeType.trim());
    response.setHeader("Content-Disposition","attachment;filename=\""+attachmentViewBean.getAttachmentName()+ "\"");
    %>
    With the above code, browser first pop up file download dialog box informing
    'You are downloading the file:[attachment.jsp] from host. Would u like to open the file or save?'
    I want the file name that I had specified in setHeader("Content-disposition","attachment;filename=resume.doc") to appear(i.e. resume.doc) in above dialog box and not the servlet name.
    Any suggestions/tips on this?
    Your help would be greatly appreciated.
    Thanks,
    Yogesh

    For saving the document I have used -
    res.setHeader("Content-disposition", "attachment; filename="+ FileName );
    and it is working very fine, it saves the document with name specified in FileName
    For opening the file in browser without any prompt-
    res.setHeader("Content-disposition", "inline" );
    For setting the content type -
    try {
         if(FileType.equalsIgnoreCase("pdf")) contentType = "application/pdf";
         if(FileType.equalsIgnoreCase("doc")) contentType = "application/msword";
         if(FileType.equalsIgnoreCase("rtf")) contentType = "application/msword";
         if(FileType.equalsIgnoreCase("gif")) contentType = "image/gif";
         if(FileType.equalsIgnoreCase("jpg")) contentType = "image/jpeg";
         if(FileType.equalsIgnoreCase("html")) contentType = "text/html";
         if(FileType.equalsIgnoreCase("htm")) contentType = "text/html";
         if(contentType == null){
         contentType="text/plain";
         res.setContentType(contentType);
    } catch (Exception e){
              out.println("Exception while setting content type");
              out.println("Exception : " + e);
              return;
    Hope this helps

  • I'm trying to share to Media Browser a 20 minute still slide show with music and text. I have tried several times to save at 1080 HD, but just before it's finished, a message box pops up saying "File already open with write permission."  What's this mean?

    I'm trying to finalize/share to Media Browser a 20 minute still slide show with music and text. I'd like to finalize it 1080 hd and have tried several times, but just before it's finished, a message box pops up saying it can't be done because "File already open with with write permission."  What does this mean?  All files are closed; this iMovie project is the only thing open.  Does it mean one of the song files from iTunes? And should I just settle for saving it as a "large" file, which is what I'm trying right now?
    Thanks,
    Jamie

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occours only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    See also this post
    https://discussions.apple.com/thread/4434104?tstart=0
    Yours Bengt W

  • Everytime I try to enter something into the search box a further box appears to tell me this is a json file and what program should I use to open it. How can I

    I am using Linux mint 12 with firefox.
    Everytime I try to type something in the search box a further box appears to tell me this is a JSON file and what program should I use to open it.
    This has only happened since reinstalling my system a couple of weeks ago.
    I am not really interested in what a json file is I simply want to get rid of this pop up box.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    See also:
    *[[/questions/921535]]

  • Pass File Path into Message Box

    Hello,
    I’m building an application that is being used to create a report for whatever date range the user chooses. After the data is exported into Excel I have a message box pop up telling the user where the file has been saved to. However, as it is now, I have
    the file path hard coded. What I want to do is have the file path chosen by the user passed into the message box and display a message with the selected path. Any help with this will be greatly appreciated.
    Dave
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using ClosedXML.Excel;
    using DocumentFormat.OpenXml;
    using System.IO;
    namespace LoanOrig_FDIC_Codes
    public partial class Form1 : Form
    SqlCommand sqlCmd;
    SqlDataAdapter sqlDA;
    DataSet sqlDS;
    DataTable sqlDT;
    SqlCommand sqlCmdCnt;
    public Form1()
    InitializeComponent();
    //BEGIN BUTTON LOAD CLICK EVENT
    private void btnLoad_Click(object sender, EventArgs e)
    string sqlCon = "Data Source=FS-03246; Initial Catalog=ExtractGenerator; User ID=myID; Password=myPW";
    //Set the 2 dateTimePickers to today's date
    DateTime @endDate = End_dateTimePicker.Value.Date;
    DateTime @startDate = Start_dateTimePicker.Value.Date;
    //Validate the values of the 2 dateTimePickers
    if (endDate < startDate)
    MessageBox.Show("End Date must be greater than or equal to the Start Date OR Start Date must be less than or equal to the End Date ", "Incorrect Date Selection",MessageBoxButtons.OK,MessageBoxIcon.Error);
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    return;
    //End of date validation
    string sqlData = @"SELECT AcctNbr,
    CurrAcctStatCD,
    Org,
    MJAcctTypCD,
    MIAcctTypCD,
    NoteOriginalBalance,
    ContractDate,
    FDICCATCD,
    FDICCATDESC,
    PropType,
    PropTypeDesc
    FROM I_Loans
    WHERE CAST(ContractDate AS datetime) BETWEEN @startdate AND @enddate ORDER BY ContractDate";
    SqlConnection connection = new SqlConnection(sqlCon);
    SqlCommand sqlCmd = new SqlCommand(sqlData, connection);
    sqlCmd.Parameters.AddWithValue("@startDate", startDate);
    sqlCmd.Parameters.AddWithValue("@endDate", endDate);
    sqlDS = new DataSet();
    sqlDA = new SqlDataAdapter(sqlCmd); //SqlAdapter acts as a bridge between the DataSet and SQL Server for retrieving the data
    connection.Open();
    sqlDA.SelectCommand = sqlCmd; //SqlAdapter uses the SelectCommand property to get the SQL statement used to retrieve the records from the table
    sqlDA.Fill(sqlDS, "I_Loans"); //SqlAdapter uses the "Fill" method so that the DataSet will match the data in the SQL table
    sqlDT = sqlDS.Tables["I_Loans"];
    //Code section to get record count
    sqlCmdCnt = connection.CreateCommand();
    sqlCmdCnt.CommandText = "SELECT COUNT(AcctNbr) AS myCnt FROM I_Loans WHERE ContractDate BETWEEN @startDate AND @endDate";
    sqlCmdCnt.Parameters.AddWithValue("@startDate", startDate);
    sqlCmdCnt.Parameters.AddWithValue("@endDate", endDate);
    int recCnt = (int)sqlCmdCnt.ExecuteScalar();
    txtRecCnt.Text = recCnt.ToString();
    btnExport.Enabled = true;
    //End of code section for record count
    connection.Close();
    dataGridView1.DataSource = sqlDS.Tables["I_Loans"];
    dataGridView1.ReadOnly = true;
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    //END BUTTON LOAD CLICK EVENT
    //BEGIN BUTTON EXPORT CLICK EVENT
    private void btnExport_Click(object sender, EventArgs e)
    { //ClosedXML code to export datagrid result set to Excel
    string dirInfo = Path.GetPathRoot(@"\\FS-03250\users\dyoung\LoanOrig_FDIC_Codes");
    if (Directory.Exists(dirInfo))
    var wb = new XLWorkbook();
    var ws = wb.Worksheets.Add(sqlDT);
    ws.Tables.First().ShowAutoFilter = false;
    SaveFileDialog saveFD = new SaveFileDialog();
    saveFD.Title = "Save As";
    saveFD.Filter = "Excel File (*.xlsx)| *.xlsx";
    saveFD.FileName = "LoanOrig_FDIC_Codes_" + DateTime.Now.ToString("yyyy-MM-dd");
    if (saveFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    Stream stream = saveFD.OpenFile();
    wb.SaveAs(stream);
    stream.Close();
    //End of ClosedXML code
    MessageBox.Show("File has been exported to U:\\LoanOrig_FDIC_Codes", "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);
    else
    MessageBox.Show("Drive " + "U:\\Visual Studio Projects\\LoanOrig_FDIC_Codes" + " " + "not found, not accessible, or you may have invalid permissions");
    return;
    //END BUTTON EXPORT CLICK EVENT
    private void Form1_Load(object sender, EventArgs e)
    //Set dates to be today's date when the form is openend
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    private void Form1_Load_1(object sender, EventArgs e)
    // TODO: This line of code loads data into the 'dataSet1.I_Loans' table. You can move, or remove it, as needed.
    this.i_LoansTableAdapter.Fill(this.dataSet1.I_Loans);
    private void iLoansBindingSource_CurrentChanged(object sender, EventArgs e)
    private void btnExit_Click(object sender, EventArgs e)
    this.Close();
    //END THE SAVE AS PROCESS
    David Young

    Assuming I have located the part of your code you are talking about, I think you just need to replace the hard code path in the message with the path from the SaveFileDialog. You should only display the message if the use clicked OK.
    if (saveFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    Stream stream = saveFD.OpenFile();
    wb.SaveAs(stream);
    stream.Close();
    MessageBox.Show("File has been exported to " + saveFD.FileName, "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);

  • Disable the pop-up message box "How would you like to open this file" to open pdf file??

    Hi,
    is there any way i can stop the pop-up box displaying to open pdf file in sharepoint document library? Right now whenever i am trying to open pdf file, asking "how would you like to open"  Read only or edit mode. currently MIME Type is setup
    but still pop-up message box.
    Thanks in advanced!

    Hi ,
    As far as I know, This is a default feature. and is not recommended to delete or deactivate this pop up. 
    This is a feature of office and there is a dll called owssupp.dll which is responsible for getting the popup to open.
    You can go to IE tools> addon settings and deactivate the above dll (sharepoint open document class). But if you do so, then the other office office files which are word/excel/pptx etc.. would aslo gets affected and they also wont get the popup.
    Hope this helps.
    Best Regards, Ashok Yadala

  • Open .sql file, pop out error message box

    When I double-click the .sql file, sql developer open this file, but windows pop an error message box: windows can't find c:\aaa\bbb.sql. Make sure you type the file name correctly...... I don't know why?
    my sql developer version is 1.0.0.15.57, OS is windowsxp.

    This is a known problem. There is some problem with the way sqldeveloper registers.

  • Trying to restore bookmarks and get error msg windows can't open places.sqlite file. also get same message when trying to open json files for prev sessions.

    Ibelieve remote user deleted cache and now I have no bookmarks. I have tried to reset firefox and was unable to do so. I tried to restore bookmarks through the places sqlite file and windows cannot open the file. I went to old firefox file on desktop and tried to open a previous version of bookmarks and windows could not open file. I still have bookmark toolbar and a lot of my categories bookmarks but they are all empty. My plugins are still there Can you tell me where to direct windows to open sqlite of json files?

    To experiment more safely, could you create a new Firefox profile? The new profile will have your system-installed plugins (e.g., Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions, or other customizations. It also should have completely fresh settings databases and a fresh cache folder. If we get your bookmarks into the new profile successfully, you can create a backup and restore it in your regular profile.
    Exit Firefox and start up in the Profile Manager using Start > search box (or Run):
    firefox.exe -P
    Any time you want to switch profiles, exit Firefox and return to this dialog.
    Please do not delete anything in this dialog.
    Click the Create Profile button, choose a name like TESTING, and skip the option to choose a folder. Then start Firefox in the new profile you created.
    If you have backups in the JSON format (e.g., bookmarks-2014...json) try to restore one to this TESTING profile. This article has the steps (you will need to use Choose File... to get to the backup):
    [[Restore bookmarks from backup or move them to another computer]]
    Does that work and give you complete results?
    If not, the next thing I would try is to drop in the places.sqlite file you have and see whether Firefox can read it properly.
    First, open up a Windows Explorer window to this new profile folder. You can do that using either
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * Help menu > Troubleshooting Information
    In the first table on the page, click the "Show Folder" button
    Got the list of files? Okay, leaving that window open, switch back over to Firefox and Exit the browser, using either:
    * "3-bar" menu button > "power" button
    * File menu > Exit
    Pause while Firefox finishes its cleanup -- you will see the timestamps update in the profile folder, then rename '''places.sqlite''' to something like places.old and drop in the places.sqlite file you want to test.
    Start Firefox back up again. Bookmarks?

  • InDesign contact sheet  is prompting reject or delete file message box

    Some of us are experiencing a very weird problem in Bridge CS3. When we use the delete button to remove data from the contact sheet settings window (for ex., deleting any data typed into the Template or Output Options fields), the reject/delete files message box appears. I've watched one of my production artists do this, and it's quite odd. All he's doing is selecting a couple or all files in a folder and then creating an InDesign contact sheet. Has anyone else experienced this problem? We were also able to replicate the issue on a different Mac computer. Thanks.

    Lisa,
    When I was writing that script, I chose to make it's dialog a palette rather than a dialog so that the user could modify the selected images while the palette was showing.
    What's happening is that:
    When the delete key is being pressed, the palette to set the settings isn't active (you can tell by the title bar in the window). When it's active, it will receive the delete key event from Bridge, when it's not active, Bridge will process the delete key.
    It seemed like a better way to do it at the time. This was the one bad case I can see, and I never thought about it nor saw it in testing.
    Regards
    Bob

  • I try to restore my bookmarks from a json file but i get "warning: unresponsive script - Script: chrome://browser/content/browser.js:3580" message - please help

    I have no idea why my bookmarks wont restore. I am confident that I even tried restoring them at the time of creation of the json file to make sure that they worked, and after i was confident i left them for a month or two then tried to restore them, but it does not work at all. I get Script: chrome://browser/content/browser.js:3580 (unresponsive script error msgs) and whether i click continue or stop script the bookmarks do not change. Please help - there is a lot of bookmarks there i was relying on.

    Not sure if this is appropriate, but I have a similar problem. Yesterday I got an update from MS to my new Win 7 machine. Now all my bookmarks are gone except the three I have in the toolbar.
    I have tried following the instructions here but it's not working. First: I can find the bookmark backup files, but don't have any html files there. They are listed as "bookmark-dates-number-a series of letters and numbers, then ==.json."
    I'm confused as to what to do next.
    Lynn

  • I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program buttons.

    I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program buttons.

    JackieMars71 I would recommend reviewing your installation log files to determine if there are any errors during the installation process.  You can find information on how to locate and interpret your installation log files at Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html.  You are welcome to post any specific errors you discover to this discussion.

  • TS3212 when installing iTunes on my new laptop a message box appears saying some sort of error has occured and i have to uninstall it then reinstall it again and it still won't work what should i do?

    when installing iTunes on my new laptop a message box appears saying some sort of error has occured and i have to uninstall it then reinstall it again and it still won't work what should i do?

    Let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you? If so, does iTunes launch properly now?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • How do i sort out error r6034 on my windows vista when i try to start itunes, the message box is from microsoft visual c++runtime library, it says an application has made an attempt to load the C runtime library incorrectly,

    how do i sort out error r6034 on my windows vista when i try to start itunes ???
    the message box is from microsoft visual c++runtime library, it says an application has made an attempt to load the C runtime library incorrectly, P;ease contact the application's support team for more information.

    Hey deepakmenonfrompune,
    Thanks for the question. I understand that you are experiencing issues with iTunes for Windows. The following article outlines the error message you are receiving and a potential resolution:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Some Windows customers may experience installation issues while trying to install or open iTunes 11.1.4.
    Symptoms may include:
    "The program can't start because MSVCR80.dll is missing from your computer"
    "iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows Error 126)”
    "Runtime Error: R6034 - An application has made an attempt to load the C runtime library incorrectly"
    "Entry point not found: videoTracks@QTMovie@@QBE?AV?$Vector@V?$RefPtr@VQTTrack@@@***@@$0A@VCrashOnOverf low@@***@@XZ could not be located in the dynamic link library C:\Program Files(x86)\Common Files\Apple\Apple Application Support\WebKit.dll”
    Resolution
    Follow these steps to resolve the issue:
    Check for .dll files
    1. Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    2. If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    3. Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    1. Uninstall iTunes and all of its related components.
    2. Reboot your computer. If you can't uninstall a piece of Apple software, try using theMicrosoft Program Install and Uninstall Utility.
    3. Re-download and reinstall iTunes 11.1.4.
    Thanks,
    Matt M.

  • Problem With File Download Dialog Box

    Hi all,
    I have jsp page that allows a user to export oracle data to excel.
    I have these code in my page:
    <%@ page contentType="application/vnd.ms-excel" %>
    response.setContentType ("application/vnd.ms-excel");
    response.setHeader ("Content Disposition",
    "filename=\"historicalrate.xls\"");
    I run the page and it popups a file download dialog box with Open and Save buttons.
    When I click the Save button a Save As window opens with a hr.xsl file name and Microsoft Excel Workbook(*.xls) as save type. It is what I want.
    The problem I have is when I click the Open button on the file download dialog box it displays data in excel format on a browser well. Then I click File > save as on browser's tool bar the Save As window pop up with no file name and a default Text(tab delimited)(*.txt).
    I need the file name and Microsoft Excel Workbook(*.xls) as default save type.
    Any help would be greatly appreciated.
    Please help
    Thanks

    I have the same problem with hui_ling.
    When user click on "Open", Excel start and open excel file correctly but the file name on excel title bar. 'Cause the file name is in Japanese characters. Any one can help me?
    Message was edited by:
    TNTVN

Maybe you are looking for

  • I updated the newest ios update and it deleted my Notes.

    I updated the newest ios update and it deleted my Notes. I backup to a paid icloud account and can't find how to restore the notes. Or are they lost ? Please help!

  • Port of the TNS Listener for the second SAP system

    Hello! I had problems during the installation of the second SAP system with second Oracle DB on the same host (OP is SOLARIS). The error occurs was faced with TNS Listener. (> error: TNS Listener is started) Which settings are applied for the TNS Lis

  • How to define MasterSpread page size ?

    Hi erverybody, I'm looking for a way to create a new master with a custom page size. I can create a new Master with this : myDocument.masterSpreads.add(1, {baseName:'NewMaster', namePrefix:'A'}); I try many options, but nothing seems to work.. myDocu

  • Read value of DateTimeInput XML View in YYYYMMDD format

    Dear Experts, I am using DateTimeInput in my XML view as: <DateTimeInput id="FromDate" type= "Date" placeholder="Enter Date ..."  /> And reading the value in the controller as: var oParameters = { "fdate" : sap.ui.getCore().getElementById('FromDate')

  • Oracle iAS servlet.

    Hi guys, I created a servlet that will accept requests and will send off the requested file. Now, these java classes create the actual IFS connections and retrieves the files, and so on. I deployed this little program in Weblogic and it worked great.