Search found 15 matches

by schneider_ms
Tue Sep 09, 2014 8:23 pm
Forum: Coding Questions
Topic: COMatePLUS_PB5 problem
Replies: 0
Views: 867

COMatePLUS_PB5 problem

I tried to run a demo ("Demo_Word doc to HTML.pb") that uses WordApplication.COMateObject.
I have installed
PureBasic 5.3 32 bit
COMatePLUS_PB5
Word 2013 from mircosoft office 365 (official full version - not starter or something similar)

The error message in debugger is
!WordApplication ...
by schneider_ms
Tue Sep 13, 2011 7:56 am
Forum: Coding Questions
Topic: reading google calendar
Replies: 0
Views: 568

reading google calendar

Hello,
does someone know how to read appointments from a google calendar?
I need functions to find all appointments for a specific day.
best regards
Markus
by schneider_ms
Mon Aug 29, 2011 11:59 am
Forum: Coding Questions
Topic: COMatePLUS and Outlook
Replies: 14
Views: 5643

Re: COMatePLUS and Outlook

That's great. This is the best solution and it works.
Thank you very much.
by schneider_ms
Mon Aug 29, 2011 10:30 am
Forum: Coding Questions
Topic: COMatePLUS and Outlook
Replies: 14
Views: 5643

Re: COMatePLUS and Outlook

I know the userlib that makes the problem. It is ScriptControl from Thomas Schulz. But if there is no new version of this userlib - how else can I use vb scripts in PB?
by schneider_ms
Sun Aug 28, 2011 9:17 pm
Forum: Coding Questions
Topic: COMatePLUS and Outlook
Replies: 14
Views: 5643

Re: COMatePLUS and Outlook

I found a library ScriptControl.
With this lib it should be possible to write some VB Code and run it in PureBasic.
Unfortunately the library produces the error:
purelibrary "StringExtension" is missing.
Where can I find this library? Or is there a newer version of
ScriptControl that works with PB 4 ...
by schneider_ms
Sun Aug 28, 2011 8:50 am
Forum: Coding Questions
Topic: COMatePLUS and Outlook
Replies: 14
Views: 5643

Re: COMatePLUS and Outlook

the problem is still there.
1) reading appointments from outlook in Purebasic seams possible but there is no way to use the find or restrict methods from outlook.
2) reading all appointments in purebasic and calculating the recurrent appointments is very very complicate.

solutions
1) use .net ...
by schneider_ms
Sat Aug 27, 2011 11:36 am
Forum: Coding Questions
Topic: COMatePLUS and Outlook
Replies: 14
Views: 5643

Re: COMatePLUS and Outlook

No COMatePLUS will not like that statement in any kind of form!

I don't know anything about Outlook, but my guess would be that you might need to use an enumeration object to do what you are after.

I don't understand how enumeration would help me with my problem. I need to find all appointments ...
by schneider_ms
Sat Aug 27, 2011 6:25 am
Forum: Coding Questions
Topic: COMatePLUS and Outlook
Replies: 14
Views: 5643

Re: COMatePLUS and Outlook

There are some hints I followed but without success.
It is not a problem of invoke or setProperty or getProperty,
it is a problem of creating the command string:


find$ = "Restrict(Start = '26/8/2011')"

str_kommando = find$
hStatement = COMate_PrepareStatement(str_kommando)
If hStatement = 0 ...
by schneider_ms
Fri Aug 26, 2011 6:51 pm
Forum: Coding Questions
Topic: COMatePLUS and Outlook
Replies: 14
Views: 5643

Re: COMatePLUS and Outlook

The start property needs to be expressed as a string value not a date object. See http://msdn.microsoft.com/en-us/library/ff869662.aspx
Having said that I still can't get the Find method to work even using the correct syntax!
That is also my problem. No matter what I try it doesn't work.

I ...
by schneider_ms
Fri Aug 26, 2011 12:38 pm
Forum: Coding Questions
Topic: COMatePLUS and Outlook
Replies: 14
Views: 5643

COMatePLUS and Outlook

I want to read some appointments from outlook using the COMatePlus api.
In VB the following code works:

Set myOlApp = CreateObject("Outlook.Application")
Set olNameSpace = myOlApp.GetNamespace("MAPI")
Set myAppointments = olNameSpace.GetDefaultFolder(olFolderCalendar).Items
Find$ = "[Start ...
by schneider_ms
Wed Feb 16, 2011 8:04 pm
Forum: Coding Questions
Topic: COMateplus and Word.Application
Replies: 1
Views: 624

COMateplus and Word.Application

I can find some interesting samples about this topic in the forum. But where can I find a complete list or instructions with all
GetStringProperty() parameters and their meaning?
GetStringProperty("Range\Text")
GetStringProperty("Documents\Open ...)
SetProperty("...")

thanks for help
Markus
by schneider_ms
Wed Feb 16, 2011 12:39 pm
Forum: Coding Questions
Topic: Question about libraries
Replies: 2
Views: 785

Re: Question about libraries

You are right, comate seems to be better - and it works.
thank you
by schneider_ms
Wed Feb 16, 2011 10:41 am
Forum: Coding Questions
Topic: Question about libraries
Replies: 2
Views: 785

Question about libraries

I tried to start pb development on a new computer. Trying the first samples I recieve the error:
"dhToggleExceptions() is not a function ...."
What library is missing?
What else do I have to install to write a programm using a sqlite database and to read and write microsoft word documents?

regards ...
by schneider_ms
Sun Mar 14, 2010 4:27 pm
Forum: Coding Questions
Topic: Old project does not run
Replies: 5
Views: 1019

Re: Old project does not run

OK thank you very much, that was the problem.
by schneider_ms
Fri Mar 12, 2010 8:24 am
Forum: Coding Questions
Topic: Old project does not run
Replies: 5
Views: 1019

Old project does not run

I have a project that was built with an early version of pure basic (year 2004 or earlier). The vb file says version 3.90.
If I want to run this program the compiler says:
DBDoQuery is not a function, macro etc..
The same message for DBFieldValue, DBRowCount and all other database functions.
Can ...