PDFreader? [英] PDFreader?

查看:67
本文介绍了PDFreader?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


使用API​​ Shellexecute功能,我使用PDFreader打开PDF文档,

如何设置PDF阅读器的位置?

还有一个API ???

ShellExecute Me.hwnd,Open,Helpbestand Q-Cycle.pdf,0,0 ,vbNormalFocus


现在我必须设置位置。


希望你可以帮助我。


Greets John。

解决方案

2003年11月25日星期二09:20:59 +0100,John Lauwers

< no **** @ fictief.com>写道:

你好,

使用API​​ Shellexecute函数我用PDFreader打开一个PDF文档,
我如何设置的位置PDF阅读器?
还有一个API ???

ShellExecute Me.hwnd,Open,Helpbestand Q-Cycle.pdf,0,0,vbNormalFocus
现在我必须设置位置。




你需要获得PDF阅读器的Windows句柄然后使用

MoveWindow API


SetWindowPos是另一种选择


或者你可以使用SetParent API来强制PDFReader

进入你的一个表格


谢谢J.French

但我现在可以使用PDF阅读器的打印命令<没有按下打印按钮的


Greets John

" J French" < ER ***** @ nowhere.com> schreef在bericht

新闻:3f ************** @ news.btclick.com ...

11月25日星期二2003 09:20:59 +0100,John Lauwers
< no **** @ fictief.com>写道:

你好,

使用API​​ Shellexecute函数我用
PDFreader打开一个PDF文档,我该如何设置PDF阅读器?
还有一个API ???

ShellExecute Me.hwnd,Open,Helpbestand Q-Cycle.pdf,0,0,
vbNormalFocus
现在我必须设置位置。



你需要获得PDF阅读器的Windows句柄然后使用MoveWindow API

SetWindowPos是另一种选择

您也可以使用SetParent API强制PDFReader进入您的一个表单



On Tue,2003年11月25日11:23:06 +0100,John Lauwers

< no **** @ fictief.com>写道:

谢谢J.French
但我现在可以使用PDF阅读器的打印命令
而无需按下打印按钮吗?




我假设按钮响应Ctl P


- 强制目标应用程序聚焦,然后......

// ---强制进入Ctl O

调用keybd_event(VK_CONTROL,0,0,0)

调用keybd_event(VK_P,0,0, 0)

调用keybd_event(VK_P,0,KEYEVENTF_KEYUP,0)

调用keybd_event(VK_CONTROL,0,KEYEVENTF_KEYUP,0)


您也可以使用SendKeys


Hello,

With the API Shellexecute function I open a PDF document with the PDFreader,
How can I set the position of the PDF Reader?
Also With an API ???

ShellExecute Me.hwnd, "Open", "Helpbestand Q-Cycle.pdf", 0, 0, vbNormalFocus

Now I have to set the position .

Hope You can help me.

Greets John.

解决方案

On Tue, 25 Nov 2003 09:20:59 +0100, "John Lauwers"
<no****@fictief.com> wrote:

Hello,

With the API Shellexecute function I open a PDF document with the PDFreader,
How can I set the position of the PDF Reader?
Also With an API ???

ShellExecute Me.hwnd, "Open", "Helpbestand Q-Cycle.pdf", 0, 0, vbNormalFocus

Now I have to set the position .



You''ll need to get the Windows Handle of the PDF Reader and then use
the MoveWindow API

SetWindowPos is an alternative

Alternatively you could use the SetParent API to force the PDFReader
into one of your Forms


Thanks J.French
But can I now programatticaly use the print command of the PDF reader
without pushing the print button?

Greets John
"J French" <er*****@nowhere.com> schreef in bericht
news:3f**************@news.btclick.com...

On Tue, 25 Nov 2003 09:20:59 +0100, "John Lauwers"
<no****@fictief.com> wrote:

Hello,

With the API Shellexecute function I open a PDF document with the PDFreader,How can I set the position of the PDF Reader?
Also With an API ???

ShellExecute Me.hwnd, "Open", "Helpbestand Q-Cycle.pdf", 0, 0, vbNormalFocus
Now I have to set the position .



You''ll need to get the Windows Handle of the PDF Reader and then use
the MoveWindow API

SetWindowPos is an alternative

Alternatively you could use the SetParent API to force the PDFReader
into one of your Forms



On Tue, 25 Nov 2003 11:23:06 +0100, "John Lauwers"
<no****@fictief.com> wrote:

Thanks J.French
But can I now programatticaly use the print command of the PDF reader
without pushing the print button?



I assume that button responds to Ctl P

- force the target App into focus, then ...

// --- Force in Ctl O
call keybd_event(VK_CONTROL, 0, 0, 0)
call keybd_event(VK_P, 0, 0, 0)
call keybd_event(VK_P, 0, KEYEVENTF_KEYUP, 0)
call keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0)

You could probably also use SendKeys


这篇关于PDFreader?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆