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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - ObjectBusy When Rendering With GDI+
  FAQ FAQ  Forum Search   Register Register  Login Login

ObjectBusy When Rendering With GDI+

 Post Reply Post Reply
Author
Message
mulfycrowh View Drop Down
Beginner
Beginner


Joined: 03 May 10
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote mulfycrowh Quote  Post ReplyReply Direct Link To This Post Topic: ObjectBusy When Rendering With GDI+
    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 !

 

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store