Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
ObjectBusy When Rendering With GDI+ |
Post Reply |
Author | |
mulfycrowh
Beginner Joined: 03 May 10 Status: Offline Points: 18 |
Post Options
Thanks(0)
Posted: 31 May 10 at 6:53PM |
Hello Everybody !
Here can you have a look on my OnPaint method :
/************************** * OnPaint * **************************/ void OnPaint(HDC hdc){ int dpi = 96; double pageWidth = CT4UDLL_PDF::getInstance().Get_PageWidth(); double pageHeight = CT4UDLL_PDF::getInstance().Get_PageHeight();Bitmap* PDFImage = new Bitmap(int(pageWidth/10),int(pageHeight/10));Graphics* PDFGraphics = Graphics::FromImage(PDFImage); HDC PDFhdc = PDFGraphics->GetHDC(); bool Res = CT4UDLL_PDF::getInstance().RenderPDFFilePage(NULL,CT4UDLL_PDF::getInstance().Get_FileHandle(),dpi,1);Status St = PDFGraphics->DrawImage(PDFImage,0,0); };
When starting the project (VC++), St equals to "ObjectBusy". Could you please tell me why and the right way to render my PDF page on the screen ?Thanks a lot !
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store