HTMLFormatOptions 클래스
HTML로 내보낼 때 옵션을 검색하고 설정할 수 있는 속성을 제공합니다.
이 형식의 멤버 목록을 보려면 HTMLFormatOptions 멤버를 참조하십시오.
System.Object
CrystalDecisions.Shared.ExportFormatOptions
HTMLFormatOptions
[Visual Basic]
Public Class HTMLFormatOptions
Implements ICloneable
[C#]
public class HTMLFormatOptions : ICloneable
설명
HTMLFileName 속성은 DiskFileDestinationOptions 개체의 DiskFileName 속성과 일치해야 합니다.
예제
이 예제는 HTMLFormatOptions 클래스의 몇 가지 속성을 설정하는 방법을 설명합니다. 코드는 먼저 변수를 선언한 다음 내보내기 옵션을 가져옵니다. 그 다음, HTML 형식 옵션과 대상 옵션을 설정한 후 보고서를 내보냅니다.
[Visual Basic]
Private Sub ExportToHTML(ByVal file As String, ByVal _
seperatePages As Boolean, ByVal pageNavigator As Boolean)
Dim htmlOpts As HTMLFormatOptions = ExportOptions.CreateHTMLFormatOptions()
Dim diskOpts As DiskFileDestinationOptions = ExportOptions.CreateDiskFileDestinationOptions()
Dim exportOpts As New ExportOptions()
htmlOpts.HTMLFileName = file
htmlOpts.HTMLEnableSeparatedPages = seperatePages
htmlOpts.HTMLHasPageNavigator = pageNavigator
exportOpts.ExportFormatOptions = htmlOpts
diskOpts.DiskFileName = file
exportOpts.ExportDestinationOptions = diskOpts
exportOpts.ExportDestinationType = _
ExportDestinationType.DiskFile
exportOpts.ExportFormatType = _
ExportFormatType.HTML40
Report.Export(exportOpts)
End Sub
[C++]
private static void ExportToHTML (string file, bool seperatePages, bool pageNavigator)
{
HTMLFormatOptions htmlOpts = ExportOptions.CreateHTMLFormatOptions();
DiskFileDestinationOptions diskOpts = ExportOptions.CreateDiskFileDestinationOptions();
ExportOptions exportOpts = new ExportOptions();
htmlOpts.HTMLFileName = file;
htmlOpts.HTMLEnableSeparatedPages = seperatePages;
htmlOpts.HTMLHasPageNavigator = pageNavigator;
exportOpts.ExportFormatOptions = htmlOpts;
diskOpts.DiskFileName = file;
exportOpts.ExportDestinationOptions = diskOpts;
exportOpts.ExportDestinationType =
ExportDestinationType.DiskFile;
exportOpts.ExportFormatType =
ExportFormatType.HTML40;
Report.Export(exportOpts);
}
[C#]
static void ExportToHTML (String* file, bool seperatePages, bool pageNavigator)
{
HTMLFormatOptions* htmlOpts = ExportOptions::CreateHTMLFormatOptions();
DiskFileDestinationOptions* diskOpts = ExportOptions::CreateDiskFileDestinationOptions();
ExportOptions* exportOpts = new ExportOptions();
htmlOpts->HTMLFileName = file;
htmlOpts->HTMLEnableSeparatedPages = seperatePages;
htmlOpts->HTMLHasPageNavigator = pageNavigator;
exportOpts->ExportFormatOptions = htmlOpts;
diskOpts->DiskFileName = file;
exportOpts->ExportDestinationOptions = diskOpts;
exportOpts->ExportDestinationType = ExportDestinationType::DiskFile;
exportOpts->ExportFormatType = ExportFormatType::HTML40;
Report->Export(exportOpts);
}
요구 사항
네임스페이스 CrystalDecisions.Shared
어셈블리 CrystalDecisions.Shared (CrystalDecisions.Shared.dll)
참고 항목
HTMLFormatOptions 멤버 | CrystalDecisions.Shared 네임스페이스
©2005 Business Objects SA All rights reserved.
Business Objects SA http://www.businessobjects.com/ 지원 서비스 http://korea.businessobjects.com/services/ |