Code: Select all
WideString ws=L"t:\\scuba.pdf";
WCHAR *sz = ws.c_bstr();
try
{
BSTR bstr = SysAllocString(sz);
GdViewer1->ContinuousViewMode=true;
GdViewer1->DisplayFromFile(bstr);
SysFreeString(bstr);
}
catch(...)
{
ShowMessage("EXCEPTION");
}
How can I make the control behave like Acrobat Reader so you can scroll through the entire PDF using pgup/pgdn or mouse scroll wheel?