日期:2014-05-18 浏览次数:20552 次
CAcroApp *pAcroApp = new CAcroApp; COleException e; pAcroApp->CreateDispatch("AcroExch.App", &e); pAcroApp->Show(); CAcroAVDoc *pAvdoc= new CAcroAVDoc; pAvdoc->CreateDispatch("AcroExch.AVDoc", &e); if(!pAvdoc->Open("c:\\test.pdf", NULL)) AfxMessageBox("Error in opening a PDF file."); long num = pddoc.GetNumPages(); // print it BOOL rc = m_pAvdoc->PrintPages((long)0, (long)(num-1), 2L, (long) 0, (long) 0); // true not working pAcroApp->CloseAllDocs(); pAcroApp->Hide(); pAcroApp->Exit(); // clean memory delete pAcroApp; pAcroApp = NULL; delete pAvdoc; pAvdoc = NULL;
------解决方案--------------------
asp.net?用object标签显示PDF文件就行
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" height="700px" width="755px"> <param name="_Version" value="65539"> <param name="_ExtentX" value="20108"> <param name="_ExtentY" value="10866"> <param name="_StockProps" value="0"> <param name="SRC" value="XXX.pdf"> </object>
------解决方案--------------------
我說用專業控件,你又說版權,又說金錢,慢慢等啊
------解决方案--------------------
http://www.radpdf.com/install/release-notes/
------解决方案--------------------
http://ufo-crackerx.blog.163.com/blog/static/113078778201211503317177/