OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17-05-2010, 11:51
abdoj
Guest
 
Posts: n/a
Default How to Bring up Convert to Bitmap dialog when using ExportBitmap

Hello,

The following code failed to bring up the 'Convert to Bitmap' dialog. Did I miss something? Please help.

VGCore::IVGRectPtr pExportArea = NULL;
VGCore::IVGStructPaletteOptionsPtr pPaletteOptions = NULL;

//Export as bmp
pExportFilter = pDoc->ExportBitmap( szFileName,
VGCore::cdrFilter::cdrBMP,
VGCore::cdrExportRange::cdrAllPages,
VGCore::cdrImageType::cdrRGBColorImage,
0,
0,
72,
72,
VGCore::cdrAntiAliasingType::cdrNormalAntiAliasing,
VARIANT_FALSE,
VARIANT_FALSE,
VARIANT_TRUE,
VARIANT_FALSE,
VGCore::cdrCompressionType::cdrCompressionNone,
pPaletteOptions, pExportArea );

if( pExportFilter )
{
if( m_bShowPDFOption )
{
VARIANT_BOOL bHasDialog = pExportFilter->GetHasDialog();
if( bHasDialog == VARIANT_TRUE )
{
pApp->get_ActiveWindow( &pIVGWindowPtr );
VARIANT_BOOL bShowDialog = pExportFilter->ShowDialog( pIVGWindowPtr->GetHandle() );
if( bShowDialog == VARIANT_TRUE )
{
pExportFilter->Reset();
pExportFilter->Finish();;
}
}
else
{
pExportFilter->Reset();
pExportFilter->Finish();;
}
}
else
{
pExportFilter->Reset();
pExportFilter->Finish();;
}
}

Thanks
Abdo
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert any object in document into bitmap anlulu General 2 27-06-2008 17:31
Convert deep powercliped RGB bitmap to CMYK Mode vindaa CorelDRAW/Corel DESIGNER VBA 1 20-05-2007 11:00
How to convert transparencies to bitmap in nested powerclip designhouse CorelDRAW/Corel DESIGNER VBA 2 29-04-2007 03:07
CD11 Convert to Bitmap -> CMYK to Gray scale problem xenio General 7 24-07-2005 21:46
how can we convert all lenses in document to cmyk bitmap? olympiatr CorelDRAW/Corel DESIGNER VBA 2 27-05-2005 04:11


All times are GMT -5. The time now is 00:13.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com