c++builder显示PDF,该怎么处理

c++builder显示PDF,该怎么处理,第1张

C/C++ code

AcroPDF1->高亮Visible = falseAcroPDF1->LoadFile("C:\\test.pdf")AcroPDF1->setShowToolbar(false)AcroPDF1->setShowScrollbars(false)AcroPDF1->setLayoutMode("SinglePage"戚咐宽)AcroPDF1->简悄setPageMode("none")AcroPDF1->setView("Fit")AcroPDF1->gotoFirstPage()AcroPDF1->Visible = true

7.0以上磨埋引用AcroPDF.dll

7.0以下咐巧引用pdf.ocx

使用下面的代衡游键码试试:

Pdf1.LoadFile strPath'pdf的路径

Pdf1.setCurrentPage iPageNumber '显示的页码

char MyCommand[100] ="\大仔"\"C:\\Program Files\\Adobe\\Reader 11.0\\Reader\\AcroRd32.exe\" /A \滚镇汪"旅世page=5\" \"C:\\example.pdf\"\""

system(MyCommand)

前面的参数是你pdf程序的路径,你可以自己编程获取。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/12324735.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-24
下一篇 2023-05-24

发表评论

登录后才能评论

评论列表(0条)

保存