指定した形式のファイルにビューをエクスポートします。
名前空間: Microsoft.Office.Interop.InfoPath
アセンブリ: Microsoft.Office.Interop.InfoPath (microsoft.office.interop.infopath.dll 内)
構文
'宣言
<DispIdAttribute(9)> _
Sub Export ( _
<InAttribute> bstrURL As String, _
<InAttribute> bstrFormat As String _
)
'使用
Dim instance As View
Dim bstrURL As String
Dim bstrFormat As String
instance.Export(bstrURL, bstrFormat)
[DispIdAttribute(9)]
void Export (
[InAttribute] string bstrURL,
[InAttribute] string bstrFormat
)
パラメータ
- bstrURL
エクスポート後のビュー ファイルの書き込み先ディレクトリの場所。
- bstrFormat
エクスポート後のファイル形式。使用できる値は "MHT" だけです。
コメント
完全に信頼できるフォーム以外のフォームで使用された場合、Export メソッドは "アクセス拒否" のエラーを返します。
例
次の例では、ViewObject オブジェクトの Export メソッドを使用して、現在のビューをエクスポートします。
thisXDocument.View.Export(@"C:\MyView.mht", "MHT");
関連項目
参照
View インターフェイス
View のメンバ
Microsoft.Office.Interop.InfoPath 名前空間