GetOutputFileFormats Example for C++ 5.0 and later
void CSampleSink::OnEnumOutputFileFormats (FORMATTYPE Format)
{
FORMATTYPE Format;
if (Format == DOCRTF_WORD_2000)
{
CString csString;
pRasterDoc->GetFileFormatInfo (DOCRTF_WORD_2000);
csString.Format (TEXT("Format Name = %s\nFormat DLL Name = %s\nFormat Ext = %s\nFormat Type = %d\nCode Page = %d\n"),
m_pRasterDoc->GetFileFormatInfo ()->FormatName,
m_pRasterDoc->GetFileFormatInfo ()->DLLName,
m_pRasterDoc->GetFileFormatInfo ()->ExtName,
m_pRasterDoc->GetFileFormatInfo ()-Type);
AfxMessageBox(csString);
}
}
void CSample_COMDlg::OnButton23()
{
pRasterDoc->GetOutputFileFormats ();
}