dbTalk Databases Forums  

ole stuff

comp.databases.paradox comp.databases.paradox


Discuss ole stuff in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Craig
 
Posts: n/a

Default ole stuff - 02-27-2007 , 09:09 PM






Ok,
Here is something new for me. I have never worked with OLE stuff. Please
forgive my ignorance about this. This is my avocation, not my vocation.
Liz and a few others gave me some help a few weeks ago when I asked about
faxing to WinFax. She essentially posted a template which is pretty easy to
follow.

My question is the following:
In the statement:
if oaSend.open("WinFax.SDKSend") then

How do I make sure that the Winfax server is active? Does Winfax Pro need to
be running all the time?
Is the WinFax.send something running in the background or is that a file?
(if it is a file do I need to make and use an alias?)
I used enumServerClassNames and found a boatload of servers on my PC at
home. However, I don't have WinFAXPro at home. The hospital has put
WinFaxPro on the PC we will be using for this app. I will run that in the
working PC and see if it shows up...

Thanks,

Craig



Reply With Quote
  #2  
Old   
Liz McGuire
 
Posts: n/a

Default Re: ole stuff - 02-27-2007 , 10:04 PM






WinFax just needs to be installed, not running. That if statement is
kind of like opening a library.

Liz


Craig wrote:
Quote:
Ok,
Here is something new for me. I have never worked with OLE stuff. Please
forgive my ignorance about this. This is my avocation, not my vocation.
Liz and a few others gave me some help a few weeks ago when I asked about
faxing to WinFax. She essentially posted a template which is pretty easy to
follow.

My question is the following:
In the statement:
if oaSend.open("WinFax.SDKSend") then

How do I make sure that the Winfax server is active? Does Winfax Pro need to
be running all the time?
Is the WinFax.send something running in the background or is that a file?
(if it is a file do I need to make and use an alias?)
I used enumServerClassNames and found a boatload of servers on my PC at
home. However, I don't have WinFAXPro at home. The hospital has put
WinFaxPro on the PC we will be using for this app. I will run that in the
working PC and see if it shows up...

Thanks,

Craig



Reply With Quote
  #3  
Old   
Craig
 
Posts: n/a

Default Re: ole stuff - 02-28-2007 , 03:57 AM



Thanks Liz,
I'll get started on it!
Craig

"Liz McGuire" <liz (AT) paradoxcommunity (DOT) com> wrote

Quote:
WinFax just needs to be installed, not running. That if statement is kind
of like opening a library.

Liz



Reply With Quote
  #4  
Old   
Craig
 
Posts: n/a

Default Re: ole stuff - 02-28-2007 , 04:23 AM



One other question:

In the statement:
oaSend.SetCoverFile("Full path to coverfile")
Can I assume the following:
1) You can't use aliases
2) Do I need to use a double slash?
ex. C:\\testdir\\coverfile.rsl
Thanks, again
Craig



Reply With Quote
  #5  
Old   
Tony McGuire
 
Posts: n/a

Default Re: ole stuff - 02-28-2007 , 07:55 AM




oaSend.SetCoverFile(getaliaspath("ath_to_file:") +"\\filename.ext")

Yes, double backslashes required.


---------------------------------------------------------
Tony McGuire



Reply With Quote
  #6  
Old   
Zal Dabhoiwala
 
Posts: n/a

Default Re: ole stuff - 02-28-2007 , 09:03 AM



Just to be clear, by getaliaspath("ath_to_file:") Tony probably means
getaliaspath(":alias_name:")

:-)

On 28-02-2007 08:55 Tony McGuire wrote the following email:
Quote:
oaSend.SetCoverFile(getaliaspath("ath_to_file:") +"\\filename.ext")

Reply With Quote
  #7  
Old   
Tony McGuire
 
Posts: n/a

Default Re: ole stuff - 02-28-2007 , 09:28 AM




Quote:
Just to be clear, by getaliaspath("ath_to_file:") Tony probably means
getaliaspath(":alias_name:")
That is correct. Thank you, Zal.


--
---------------------------------------------------------
Tony McGuire




Reply With Quote
  #8  
Old   
Craig
 
Posts: n/a

Default Re: ole stuff - 02-28-2007 , 10:57 AM



Thanks guys,
I'll let you know how this goes..
Craig
"Tony McGuire" <png.paradoxcommunity@com> wrote

Quote:
Just to be clear, by getaliaspath("ath_to_file:") Tony probably means
getaliaspath(":alias_name:")

That is correct. Thank you, Zal.


--
---------------------------------------------------------
Tony McGuire





Reply With Quote
  #9  
Old   
Craig
 
Posts: n/a

Default Re: ole stuff - 03-01-2007 , 06:17 AM



I went to the PC where Winfax Pro is installed and ran the command:
enumServerClassNames as written in the paradox helpfiles.
I got a lnice ist of a lot of servers, none of them WinFax servers
I believe they are using Version 10.x (Win2000)
WinFax Pro is running on the PC and there is the little yellow telephone
icon in the tray.
There is very little documentation on the Symmantec Web site.
Does anyone have any experience about how to get the server running?
Thanks,
Craig



Reply With Quote
  #10  
Old   
Tony McGuire
 
Posts: n/a

Default Re: ole stuff - 03-01-2007 , 08:05 AM




Try enumAutomationServers instead.

And note, the subject entry isn't always named what you think it should be.

You may need to write out the resulting dynarray to a text file, and then
search the text file, to find what you are looking for.

---------------------------------------------------------
Tony McGuire



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.