View2.Export(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Exports the view to a file of the specified format.
public:
void Export(System::String ^ bstrURL, System::String ^ bstrFormat);
public void Export (string bstrURL, string bstrFormat);
abstract member Export : string * string -> unit
Public Sub Export (bstrURL As String, bstrFormat As String)
Parameters
- bstrURL
- String
The directory location that the exported view file will be written to.
- bstrFormat
- String
The type of file format to export to. Only the "MHT" value is supported.
Implements
Examples
In the following example, the Export method of the ViewObject object is used to export the current view:
thisXDocument.View.<span class="label">Export</span>(@"C:\MyView.mht", "MHT");
Remarks
If used in a form that is not fully trusted, the Export method will return a "permission denied" error.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기