Download file with fields with decimal values.

Hi,
I need to download infotype records to a file.
I need a comma deleimited file.
I have got all the details from Infotype to my internal table 'IT_OUTPUT_OPR'
my code is as follows:
LOOP AT IT_OUTPUT_OPR.
    CLEAR IT_FILE_OPR.
    NUM = 0.
    DO.
Get name of next structure field into <f>
      ASSIGN COMPONENT SY-INDEX OF STRUCTURE IT_OUTPUT_OPR TO <F>.
      IF SY-SUBRC <> 0. EXIT. ENDIF.   " No more fields in structure
      LEN = STRLEN( <F> ).
      IT_FILE_OPR+NUM = <F>.   " Write field to output table
      NUM = NUM + LEN.
      WRITE: ',' TO IT_FILE_OPR+NUM(DELIMIT_LEN).
      NUM = NUM + DELIMIT_LEN.
    ENDDO.
    APPEND  IT_FILE_OPR.
  ENDLOOP.
my internal table contains 'decimal' fields too.
so I am getting the following runtim error: 'OBJECTS_NOT_CHARLIKE'
at the position:
LEN = STRLEN( <F> ).
Please could anyone tell me how could this issue be resolved?
any pointers in this regard would be helpful.
Thanks,
Saher

Try something like following
LOOP AT IT_OUTPUT_OPR.
     CLEAR IT_FILE_OPR.
     NUM = 0.
     DO.
*  Get name of next structure field into <f>
       ASSIGN COMPONENT SY-INDEX OF STRUCTURE IT_OUTPUT_OPR TO <F>.
       IF SY-SUBRC <> 0. EXIT. ENDIF.   " No more fields in structure
*       LEN = STRLEN( <F> ).    "DELETE
       DESCRIBE FIELD <F> OUTPUT-LENGTH  LEN. "INSERT
       IT_FILE_OPR+NUM = <F>.   " Write field to output table
       NUM = NUM + LEN.
       WRITE: ',' TO IT_FILE_OPR+NUM(DELIMIT_LEN).
       NUM = NUM + DELIMIT_LEN.
     ENDDO.
     APPEND  IT_FILE_OPR.
   ENDLOOP.

Similar Messages

  • How can I upload and download files with uiXML?

    I want to implement upload and download files with uiXML. In some previouse topic I got answare to look in AbstractPageBroker class in JavaDOC. I did it but this is a very-very little resolution description for this problem. I think for developers YOU (UIX Team) must in very quick time to put some examples on the NET because this is a nice technology but with adecvate samplase and developers guide it will be dead very soon. I digging this forum for information. I see many many people have same problems about this technology. They like it and want to use and try but documentation is very very poor.
    WE WANT EXAMPLES and separate forum for UIX. I think it deserve this.
    If You have any more detailed documentation would be nice to put on the net. I have uixdemo.zip file but this is in very early fase of development. I downloaded it before fwe months. And now I can't find it anymore on youre site. What happend?

    Attila -
    I went back and re-read the JavaDoc for AbstractPageBroker and MultipartFormItem and put together the following sample PageBroker based on the description from the JavaDoc:
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletContext;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.share.util.MultipartFormItem;
    import oracle.cabo.servlet.xml.UIXPageBroker;
    * An extension of UIXPageBroker which stores all uploaded
    * files in the temporary directory.
    public class UploadingPageBroker extends UIXPageBroker
    * Override of AbstractPageBroker.doUploadFile() which saves
    * all files to the temporary directory.
    protected String doUploadFile(
    BajaContext context,
    Page page,
    MultipartFormItem item) throws IOException
    // Get the location of the file to create in the temp directory.
    // Of course a real application probably wouldn't upload files to
    // the temp directory - just using this contrived example to
    // demonstrate basic uploading support.
    File file = _getFile(context, item);
    if (file != null)
    // Create a FileOutputStream. Of course, a real application would
    // probably want to buffer the output
    FileOutputStream out = new FileOutputStream(file);
    // Write out the file
    item.writeFile(out);
    // Close up the output stream
    out.close();
    // We can return a value here to add to the PageEvent
    // if so desired.
    return null;
    // Gets the File for the item that we are uploading
    private File _getFile(
    BajaContext context,
    MultipartFormItem item
    // Get the file name
    String name = item.getFilename();
    // If we don't have a file, bail...
    if (name == null)
    return null;
    // Get the path to the temporary directory
    File dir = _getTempDir();
    // Return the File object
    return new File(dir, name);
    // Returns the path to the temprary directory
    private File _getTempDir()
    // Get the temporary directory from the ServletContext
    ServletConfig sConfig = getServlet().getServletConfig();
    ServletContext sContext = sConfig.getServletContext();
    return (File)sContext.getAttribute("javax.servlet.context.tempdir");
    In this sample, each uploaded file is simply saved in the temporary directory. You'll want to replace the code that creates the FileOutputStream for the uploaded file to use whatever OutputStream makes sense for your application.
    BTW - I used the following UIX page to test this out:
    <?xml version="1.0" encoding="UTF-8"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller">
    <content>
    <pageLayout xmlns="http://xmlns.oracle.com/uix/ui">
    <contents>
    <form name="uploadForm" usesUpload="true">
    <contents>
    <fileUpload name="uploadedFile"/>
    <submitButton name="upload" text="Upload"/>
    </contents>
    </form>
    </contents>
    </pageLayout>
    </content>
    </page>
    Hope this sample helps with the uploading part of your question. I'll see if I can provide a download sample in a later post.

  • How to download  file with Save As dialog

    I am trying to download files with a Save As dialog, according to Jason Hunter's instructions in Jave Enterprise Best Practices.
    String filename = "content.txt";
    // set the headers
    res.setContentType( "application/x-download" );
    res.setHeader( "Content-Disposition", "attachment; filename=" + filename);
    // send the file
    OutputStream out = res.getOutputStream();
    returnFile( filename, out);
    The file content.txt is in the root directory of my webapp. But I get this stack:
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.io.FileNotFoundException: content.txt (The system cannot find the file specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.(FileInputStream.java:64)
         at com.interwoven.cssdk.examples.servlets.FileDownloadServlet.returnFile(FileDownloadServlet.java:43)
         at com.interwoven.cssdk.examples.servlets.FileDownloadServlet.doGet(FileDownloadServlet.java:24)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
         at java.lang.Thread.run(Thread.java:484)

    The root of the webservers changes from server to server and
    sometimes it depends on the path you run webserver exe.
    The best i have found to overcome this kind of problems is by
    using getResourceAstream() method which basically looks at classpath locations only, but still this has some problems like it should kept at the
    specified classpath becoz the getResourceAsStrem() method is not static
    method and it always associated with the class object and the file
    accessing also should be in the same package/classpath.
    by using getResourceastream you cannot look at other places (except classpaths)
    and this should be used only if you looking for .properites definitions.
    the Second best method is
    see you have a file called "context.txt" right
    before you create a file, first create a directory at the root, let say
    "\tmp"
    and then create a file \tmp\context.txt
    and then open an output stream to it either using fileoutputstreamm...
    and then write all output content to servlet/client output stream.
    this will be the best becoz you are specifying the "\" the root
    and this is common for all operating systems and definitely it will create at the root directory either serverroot or harddiskdrives root
    so you will never missout and the exceptin will also not comes along the way
    cheers..
    if you get new thing , let me know
    bye
    with regards
    Lokesh T.C

  • I can´t download files with Real Player whwn I upsated Firefox.

    I was told to update Firefox whichI did. After that I can´t download files with Real Player which I could before I updated.

    You cannot download files to the iPad via Safari.  You download them on your computer and synch them through iTunes.
    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf

  • CS4 angry with decimal values

    Hi,
    I can't find the answer to my problem :
    I'm on Indesign CS4 (french) and Windows XP. Constantly, without no (obvious) reason, the fields x, y, height and width (top left) suddenly doesn't take decimal values anymore.
    It drives me crazy!
    I work for a printer, I daily use Indesign so it's important.
    Apparently, the problem disappear when i restart the soft.
    I tried with point and decimal point,
    I tried to change one number when the value is already a decimal,
    I checked my keyboard (AZERTY),
    but nothing at all….
    Each time, the soft display "Valeur numerique incorrect" (Incorrect numeric value).
    Did someone already had this problem ? An even more important, does anyone have a solution?
    Hope you can help.
    THX

    Are you using the correct separator for the decimal (comma vs dot -- not sure which would be right for you), and are the files all French in origin (not sure tht matters).
    Check the Language settings in Windows under regional settings, and diable the keyboard shortcut to switch languages if you have multiple languages installed. That screws things up all the time becasue the OS interprests one of the common ID shorcuts as a call to switch languages.
    You might also want to trash your prefs. See Replace Your Preferences

  • Downloaded files with ActiveX not displays using Windows 8 and IE 11

    We are using ActiveX for downloading file from our server. After downloading ActiveX decrypt downloaded files. ActiveX works fine with all other IE versions but in case of IE 11, when we download the files ActiveX doesn't throw any error, but when we check
    the files at downloaded location, it looks like there was no files downloaded. When we the same process again using "IE 11 using "run as Administrator" the downloaded files displays at the downloaded location.
    After debugging, We didn't found error like "access denied or path not found or any other error." with or without Administrator mode. but still facing this issue.
    When we download file again using "Browse for Folder" it display the previous downloaded folders, but not exists at the actual location.
    Your quick reply will highly appreciated.
    Thanks

    Hi,
    on the user account.
    Tools>Manage Addons>Show all addons>Locate your custom download control in the list and double click it to display its properties.
    at the bottom of the Properties dialog there is a list of allowed sites. compare this with the settings on the Administrators account. The value should be the same as on the user account.
    If you are talking about the Akami Download manager from TechNet.
    Name:                   DLM Control
    Publisher:              Akamai Technologies Inc.
    Type:                   ActiveX Control
    Architecture:           32-bit
    Version:                2.2.6.2
    File date:              ‎Thursday, ‎28 ‎June ‎2012, ‏‎4:02 PM
    Date last accessed:     ‎Wednesday, ‎24 ‎October ‎2012, ‏‎9:23 PM
    Class ID:               {4871A87A-BFDD-4106-8153-FFDE2BAC2967}
    Use count:              3
    Block count:            1
    File:                   DownloadManagerV2.ocx
    Folder:                 C:\Windows\Downloaded Program Files
    it is only available in the x86 version.
    On server versions of windows you can only download software from MS on the Admin account. By default
    http://microsoft.com is mapped to the Trusted sites list...
    If possible please post back with the Properties of your custom AX download control from the Manage Addons dialog.
    Rob^_^

  • Fail to download file with explorer 10 while explorer 9 and other browsers succeed to download the same file

    I try to download file from management website of switch device. The file size is 11.66K.
    The webserver is GoAhead, OS is windows7 and explorer version is 10 (it also happens with explorer 11). The server is using Transfer-Encoding: chunked.
    After I download the file, I get pop-up message from the browser “Do you want to open or save running-config.txt from 1.1.1.11?”
    If I press the save/open button I get message “running-config .txt couldn’t be downloaded”. If I press the retry button the file is downloaded successfully.
    When I used meddler to debug the problem, it didn’t occur and the file was downloaded successfully.
    I took capture of successful download (with meddler debugger) and  another capture of download that raised “couldn’t be downloaded” message, but I didn’t see any difference between the requests and the responses. I also made sure the last chunk
    “0” was not missing in the response and it wasn’t.
    Please note, I also tried many suggestions given to other users that reported similar problem – restart explorer, remove add-ons, etc – nothing worked!
    Please help.

    Hi,
    Did  this issue occur on when you download file from other website?
    This problem occurs if the Do not save encrypted pages to disk option in Internet Explorer is selected.
    To fix this issue, try these methods:
    Methods 1
    On the Tools menu in Internet Explorer, click Internet Options, click the
    Advanced tab, click to clear the check mark from the Do not save encrypted pages to disk check box in the
    Security area, and then click OK. (This is the default Internet Explorer setting.)
    Methods 2
    1.Start Registry Editor.
    2.For a per-user setting, locate the following registry key:
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
    For a per-computer setting, locate the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
    3.On the Edit menu, click Add Value, and then add the following value:
    "BypassSSLNoCacheCheck"=Dword:00000001
    4.Exit Registry Editor
    Karen Hu
    TechNet Community Support

  • Importing a text file with variable values into web reporting

    Hello,
    I'm looking for a possibility to import values from a text file into a variable selection in Web reporting.
    With BEx reporting in Excel this is possible, by clicking on the multiple selection button in the variable popup screen, and subsequently selecting the "Import from Text file" button.
    However, this function seems not to be available for web-reporting...
    It would be great if someone could help me out with this!
    Thanks & regards,
    Arvid

    Hi,
    we could resolve this issue, so i thought it may also be helpful for others:
    In our example we used a file with numbers for materials. This file is stored somewhere in a directory, to which SAP BI must have authorization to read.
    The file looks something like this:
    4711
    4712
    4713
    4714
    The file is named "import.txt" and lays in directory "/usr/sap/EC6/files/bi/"
    *&  Include           ZXRSRU01
    * global variables
    Data: intern_range LIKE LINE OF i_t_var_range,
          l_s_range    TYPE rsr_s_rangesid,
          line(100)    TYPE c,
          p_file(128)  TYPE c,
          length_rangelow  type i,
          tmp_rangelow     like l_s_range-low.
    * internal tables for selection-transfer from transaction
    * Data: BEGIN OF it_file occurs 0,
    *        it_p_file(128) TYPE c,
    *      END of it_file.
    IF i_step = 1.
    ** variables can be changed or set before pop-up appears
      CASE i_vnam.
    * take material from external file to selection-list
         WHEN 'ZSD_UPMA'.
    ** call of transaction, with which the path can be set
    *CALL TRANSACTION 'ZBW_VARIABLE' using it_file
    *MODE 'A'      " call should be visible, so that variable can be set
    *UPDATE 'S'.   " first transaction, then processing
    ** Der Pfad, der in dem Selektionsbild eingegeben wird, wird an die Variable übergeben
    ** Der Set-Parameter ist in Report ZSD_SELECT_VARIABLE
    *  get parameter id 'VAR' field p_file.
    p_file = '/usr/sap/EC6/files/bi/import.txt'.
    * further handling of variable in BI
          OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
          IF sy-subrc = 0.
            READ DATASET p_file INTO line.
            WHILE sy-subrc = 0.
              IF line(2) <> '//'.
                l_s_range-sign = 'I'.
                l_s_range-opt  = 'EQ'.
                l_s_range-low  = line.
    * fill with leading Zeros
    * in variable tmp_rangelow the value from l_s_range-low is taken
        tmp_rangelow    = l_s_range-low.
    * read the length
        length_rangelow = strlen( tmp_rangelow ).
    * in our case: material has 18 characters
        while length_rangelow lt 18.
          CONCATENATE '0' tmp_rangelow INTO tmp_rangelow.
          length_rangelow = length_rangelow + 1.
        endwhile.
    * initialize l_s_range-low
        clear l_s_range-low.
    * set with filled values
        l_s_range-low = tmp_rangelow.
    * transfer to structure
                APPEND l_s_range TO e_t_range.
              ENDIF.
              READ DATASET p_file INTO line.
            ENDWHILE.
          ENDIF.
          CLOSE DATASET p_file.
        ENDCASE.
    ELSEIF i_step = 2.
    ** in step 2 all variable values from pop-up input can be processed or
    ** User Exit variables can be derived
    * UserExit Ende.
    ENDIF.
    Hope i could help!
    Best regards,
    Tobias

  • [iPhone] Can't download file with FTP

    Dear everybody.
    I want to download a text file at : ftp://username:[email protected]
    Current, I use below code:
    NSString *s = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"ftp://username:[email protected]"] encoding:NSUTF8StringEncoding error:pError];
    and I try:
    NSData *tmpdata = [NSData dataWithContentsOfURL:[NSURL URLWithString:SERVER_NAME]];
    But I can't download content of text.
    I think NSURL can not get content from ftp protocol
    So, please help me download file use FTP.
    Thank you very much!

    Yes, if I try access with specify the file name as:
    @"ftp://username:[email protected]/file.txt"
    then I can get content of file.
    But I want list and show all file in path: @"ftp://username:[email protected]".
    Pls help me

  • Load/download files with a MAC

    We have oracle iFs 9.0.1 Win 2000
    The users are using ftp and windows explorer to load and download the files with Windows and NT OS. Now we have a user with MAC.
    How can he load/download the files, I dont have any mac to test?

    hii, plz use this code ...
    theResponse.setContentType("application/download");
    theResponse.setHeader("Content-Disposition", "attachment; filename= \""+"StudentReport.pdf"+"\"");

  • How do I download files with .dds extension in Adobe Elements 11?

    I am trying to download a file with a .dds extension but I can't open the file. I've been told this can be down on the Adobe Photoshop element version 8, so I would assume version 11 can do it as well. Do I need a plug in to do this and if so, what kind? Thanks.
    Pigeon girl

    Try the free irfanview instead:
    http://www.irfanview.com

  • Unable to download files with IE 9, 10 or 11

    We have a user who is not able to download files using IE. She's running Windows 7 Pro 32-bit. She's able to download using other browsers. This seems to have started when I changed her local rights from Local Admin to Standard user.
    I've disabled all plugins, downgraded from IE10 to IE9, upgraded to IE11. We've also tried running her system in Safe Mode with networking still no luck. I also changed her local rights from standard back to Admin.
    I've tried most of what was suggested here: https://social.technet.microsoft.com/Forums/ie/en-US/7a8e5897-9708-4506-9efc-8f888efbba21/ie9-and-ie10-cannot-downloadopen-any-files
    Any other suggestions?

    Hi,
    Is there any error message when this system couldn't download file through IE? Is this computer added to Domain?
    It would be better to provide a screenshot for this problem.
    Roger Lu
    TechNet Community Support

  • Cant open any attachment or downloaded file with any office 365 for small bussines

    I cant open any e-mail attachment or downloaded file of any kind with any application in office 365 for small bussines. Since I need it for bussiness need help NOW. Thank you.

    Hi,
    Did you get any error message when you tried opening or downloading the attachment?
    Are you viewing attachments in Outlook Web App or Outlook desktop client? If you were using OWA when this issue happened, please have a look at this KB article and see if it applies:
    https://support.microsoft.com/kb/2852113
    Since this forum focus more on Office desktop client side questions, if it's an OWA issue in Office 365, I'd recommended you post a question in the Office 365 Community forum:
    http://community.office365.com/en-us/f/default.aspx
    The reason why we recommend posting appropriately is you will get the most
    qualifiedpool
    of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    If I've misunderstood something, please feel free to let me know.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Problem downloading files with japanese names

    I'm having trouble with Safari and a group-ware used in our company.
    The group-ware is Cybozu, made in Japan, and now it is in version 6.
    Officially, the only supported browser is MS Internet Explorer versions
    5 and above (should be there something like that? I though it was
    supposed to support ANY browser since that's the MAJOR selling point
    for browser-based group-ware solutions...). And more: it seems that
    support for Macintosh is non-existent.
    Since the Panther upgrade, me and my colleagues can't download files
    whose names are in japanese and that are stored in or sent to us by the
    group-ware . We are working in a telecommunications company (here in
    Japan), but our team focuses on media and advertising, and so are the
    only ones having Macs (in an almost exclusively Windows environment).
    To add to the complexity, our target market is brazilians who live in Japan
    (trust me, there's a lot of them!). So our Macs have to deal also with
    the accentuated characters of the Brazilian Portuguese language, english
    AND japanese.
    In a way, the Mac is the ONLY successful solution to such an environment.
    Since administrative and other mundane tasks don't require dealing with
    multilingual files, the vast majority of the employees use Windows (nothing
    new there, eh?). The problem only starts to affect us when we request help
    to the System Administrators. I called on them about this problem but it
    seems that we are deep under in the priorities list.
    So I present the problem here:
    -When clicking in the link:
    •With Firefox, Netscape and Explorer, there is no problem.
    •With Safari, I am sent to the login window of the group-ware.
    -I figured out that the problem is with the way the URLs are presented.
    Let's say that the file I want to download is <a href="http://www.geocities.jp/claytonshima/Imagem1.gif>this</a>.
    • <a href="http://www.geocities.jp/claytonshima/Imagem2.gif>Here's a sample of a good URL (in Firefox, Netscape and Explorer).
    • http://www.geocities.jp/claytonshima/Imagem3.gif>And this is the URL in Safari.
    So it seems that the problem is the way that Safari handles the japanese
    characters in the URL.
    Any insights on this?
    Thanks in advance!
    Clayton Shima
    PS: Edited and included the link to the images because I couldn't figure out how to write in japanese here in these discussion boards.....

    Hi, thanks for the reply.
    The problems occurs when I click on the link AND when I copy/paste the URL.
    In fact, I realized that something wrong was happening to the way Safari
    handles the urls after I copied and pasted.
    We are using Tiger, but the problem started to appear when we upgraded to
    Panther. In Jaguar there were no problems - or is it the other way around?
    I can't remember, but put the older in this place and I guess you can figure it
    out, sorry!
    Doing what you suggested (turning text encoding to UTF-8) solves the
    problem of downloading, but when turning the encoding, all the text in the
    page gets weird and unreadable. Even so, clicking in the link downloads the
    file, but the file gets saved with its name all messed (the file name extension
    are OK though, the same as files which file names include roman alphabet
    letters preserve the integrity of such letters). This can be a temporary
    workaround, but to rename each downloaded file can get quite painful if
    downloading lots of files!
    I have already tried changing the system language between the three ones
    we most use (english, japanese and brazilian portuguese), with and without
    system restart, in all the possible text encoding combinations, with no avail.
    Is there the possibility that this is a Safri bug? Since the links to the files are
    generated by the server running the groupware, is it possible that the
    group-ware is the culprit? One could think that URL formatting is a pretty
    standard thing....
    ありがとうございます! <- japanese test in UTF-8

  • Open download file with MS Word as .doc

    I apologize if this is a moronic question, but I cannot find an answer anywhere.
    I have written an application that generates a download file that should open in Microsoft Word, and be recognized as a .doc, NOT a .txt file.
    My code includes the following, where wordName is like "something.doc":
    response.setContentType("application/msword");
    response.setHeader("Content-disposition","attachment;filename=" + wordName);
    The file downloads, has the ".doc" suffix, and opens with MS Word. The specific problem is that "Returns" in the file appear as little squares inset in the text. If I do a "Save As" on the opened document, the suggested format is ".txt", not ".doc". If I save the document as a .doc and then reopen in, the little squares are gone - MS Word is now actually opening a .doc, and not a .txt file.
    I guess my question, then, is: is there something else I can set to the response to get Word to open this file correctly the first time, rather than having to do the "Save As" routine?

    Has the document been saved on the server side using MS Word? Was the same version of Word used to save it?
    I think word is very picky about such things, it doesn't sound like a problem with your servlet.

  • Write all digitall ports (Channels) with decimal value

    Hi,
    it is possible to write all digital port with a decimal value for a device with 96 channels in the same time?
    I have a USB 6509 device and I want to write each bit whit value 1 in loop (for the first port I write 0,1,2,4,8,16, 32, 64 and 128) with line "Dev3/port0/line0:7", but if I want to write all the ports in the same time how to set the line and the "DAQmx write.vi"?
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    Untitled 1.vi ‏13 KB

    You can setup reading and writing in 8-bit ports with the 6509.  So you could just write 128 to "Dev3/port0".  If you want to write to all 12 ports, I recommend making a task that is multiple channels on the 6509 module, each channel in the task being a port.  You can then use the Multiple Channel, Single Sample to write your values.  Your values will need to be in an array of U8.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for