2017-03-02 1 views
0

나는이활성 보고서의 ReportInfo 필드에 시간 값을 추가 하시겠습니까?

using GrapeCity.ActiveReports; 
public string OutputFormat {get; set;} 
public void PageHeader_Format() 
{ 
this.ReportInfoTime.OutputFormat = "hh:mm tt"; 
this.ReportInfoTime.Value = System.DateTime.Today; 
} 

같은 스크립트 섹션에 보고서의 시간을 추가하기 위해 노력하고있어하지만 난이 오류를

'GrapeCity.ActiveReports.SectionReportModel.ReportInfo' does not contain a definition for 'OutputFormat' and no extension method 'OutputFormat' accepting a first argument of type 'GrapeCity.ActiveReports.SectionReportModel.ReportInfo' could be found (are you missing a using directive or an assembly reference?) 

어떤 조언을 얻고있다.

답변

1

스크립트를 사용하여 사용자 정의 문자열 "ReportInfo"제어의 출력 형식을 변경를 들어, 다음과 스크립트 코드를 대체 할 수있다 :

public void PageHeader_Format() 
{ 
    this.ReportInfo1.FormatString = "{RunDateTime:hh:mm tt}"; 
} 

을 * "ReportInfo1는"당신의 ReportInfo 컨트롤의 이름입니다

관련 문제