Options

Output File

aka_USAPAaka_USAPA Member Posts: 62
I'm creating a report that would output a tab delimited file. Does someone know how I can setup a textbox so that it will browse to the right folder so I can specify the right name?

Comments

  • Options
    ara3nara3n Member Posts: 9,256
    Here is an example
    OBJECT Report 50010 example file import
    {
      OBJECT-PROPERTIES
      {
        Date=11/14/06;
        Time=[ 5:32:22 PM];
        Modified=Yes;
        Version List=TEC01.00;
      }
      PROPERTIES
      {
        ProcessingOnly=Yes;
        OnInitReport=BEGIN
                       FileName := 'C:\Temp\orders.txt';
                     END;
    
        OnPostReport=BEGIN
                       IF NOT EXISTS(FileName) THEN
                        ERROR('could not find the file');
                     END;
    
      }
      DATAITEMS
      {
      }
      REQUESTFORM
      {
        PROPERTIES
        {
          Width=13090;
          Height=3520;
          SaveValues=Yes;
        }
        CONTROLS
        {
          { 1   ;TextBox      ;3520 ;330  ;9350 ;440  ;AssistEdit=Yes;
                                                       SourceExpr=FileName;
                                                       OnAssistEdit=VAR
                                                                      FileDialog@1000000000 : Codeunit 412;
                                                                    BEGIN
                                                                      FileName := FileDialog.OpenFile('Hello ' + USERID + ' Please Select the XML File.','',4,'xml',0);
                                                                    END;
                                                                     }
          { 1000000003;Label  ;220  ;330  ;3300 ;440  ;CaptionML=ENU=File Name }
        }
      }
      CODE
      {
        VAR
          FileName@1000000005 : Text[100];
    
    
        BEGIN
        END.
      }
    }
    
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    aka_USAPAaka_USAPA Member Posts: 62
    Thank you very much!
  • Options
    ara3nara3n Member Posts: 9,256
    you are welcome.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.