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 - opens the PDF file, outside the App
  FAQ FAQ  Forum Search   Register Register  Login Login

opens the PDF file, outside the App

 Post Reply Post Reply
Author
Message
lakkan View Drop Down
Senior Member
Senior Member


Joined: 10 Dec 15
Location: Bangalore
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote lakkan Quote  Post ReplyReply Direct Link To This Post Topic: opens the PDF file, outside the App
    Posted: 06 Jan 16 at 12:23PM
Hi,

I am working with Licensed version of Debenu..

Here below is my problem, any help please.

Below piece of code, though it works, but PDF file is opened as popup window, outside the application, where as window created is a child and it is part of parent window owned my application.

I wanted PDF file, to be opened in a child window, which is part of parent window owned by application..

DebenuPDFLibraryDLL1211 QP(L"DebenuPDFLibraryDLL1211.dll");
//Library key    
std::wstring strLicenseKey = L"xxxxxxx5y"; 
// Unlock the library
int iResult = QP.UnlockKey(strLicenseKey);
int nState = QP.LoadState();


#if defined c_switchPlatformWIN32
  hWnd=CreateWindowEx(0,"DebenuView",NULL,WS_CHILD,0,0,0,0,(HWND)pDataParent,0, (HINSTANCE)nState,0); //Here window is created
hdc = ::GetDC(hWnd);   //Gets the device context of the above window

#endif
int nLoad = QP.LoadFromFile(image_puForeign->acPathTemp,L""); //Here it loads PDF file

QP.RenderPageToDC(100, 1,hdc); //Render the PDF file


Lakkan



Edited by lakkan - 06 Jan 16 at 12:26PM
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