Skip to main content

[archive] Appointment / Scheduler / Calendar

  • January 4, 2005
  • 35 replies
  • 2 views

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?

35 replies

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Hi J,
componentsource.com has a few listed here:

http://www.componentsource.com/Catalog.asp?fl=A210&sc=CS&bc=A100~A210~BUSFUNCCALEND&ul=en&gf= BUSFUNCCALEND

I know of one acucorp developer who has used the Gravitybox Schedule control with success.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Dan,

Do you know where I could get some sample code used to interface with the gravity box control... it looks like it will do everything I need.

thanks for you help..

Jason

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
When I looked at this control two years ago, I did a quick acucobol sample. The sample does very little, but it's a start. The best examples are the VB sample projects that come with the component. This is what I created my acucobol sample from.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Jason,

We have implemented GravityBox Schedule control. Let me know if I can help answer any questions. Go Red Raiders!

Rob

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Thanks for chiming in Rob, you were the acucobol developer I alluded to, but I didn't want to obligate you to assist. I figured you'd see this "Gravitybox" thread eventually and you would respond and sure enough you did. Thanks. :D

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Rob,

Thanks for the offer I'm sure I'll have some questions. I started working with the Gravity Box controls this week...

Jason

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
No problem, Jason. Good Luck!

Dan, you're very tactful! :-)

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Rob or anyone,

I've been working with the Gravity box controls for the schedule.

Have you used the following function?

Syntax:
Function ExportHTML(oHTMLParameters As CHTMLParameters) As Boolean

Here's the an the definition of the method from the def file.

* ExportHTML
METHOD, 1610809596, @ExportHTML,
"_CHTMLParameters**" @oHTMLParameters, TYPE 16393
RETURNING "boolean", TYPE 11


Since the CHTMLParameters is a class object, how do you load it?

I'm probably missing something simple/stupid...

Thanks for the help....


Jason

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Here's the VB code that does the load of the CHTMLParameters...

But I don't see how to do it in COBOL.

Private Sub mnmuExportHTML_Click()

Dim oHTMLParameters As CHTMLParameters

Set oHTMLParameters = New CHTMLParameters

'Setup the schedule to be exported.
oHTMLParameters.FileName = App.Path & "\\" & "sampleschedule"
oHTMLParameters.Overwrite = True
oHTMLParameters.HTMLHeader = "This is Header Text"
oHTMLParameters.HTMLFooter = "This is Footer Text"
oHTMLParameters.PageTitle = "Sample Schedule Page"
oHTMLParameters.TableOnly = False
oHTMLParameters.UseFrames = True
Call Schedule1.ExportHTML(oHTMLParameters)


thanks for any help

Jason

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Jason,

I haven't used this method of the control. However, it looks like you need to create the occurence of the CHTMLParamaters and then populate the various properties of that object. Then, use the ExportHTML method using the CHTMLParamaters object.

So, something sort of like this: (I haven't tried this)

01 HTML-HANDLE HANDLE OF CHTMLParamaters

. . .

CREATE CHTMLParamaters HANDLE IN HTML-HANDLE.
( not sure about above line, but don't see any other way of getting it)

MODIFY HTML-HANDLE
@FileName = "sampleschedule"
@Overwrite = 1
@HTMLHeader = "This is Header Text"
@HTMLFooter = "This is Footer Text"
@PageTitle = "Sample Schedule Page"
@TableOnly = 0
@UseFrames = 1.
MODIFY SCHED-HANDLE @ExportHTML(HTML-HANDLE).

Hope this helps. Good Luck!

Rob

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
The key is using the CREATE verb to return a handle.


WORKING-STORAGE SECTION.
*Declare an instance of @CHTMLParameters class.
*VB: Dim oHTMLParameters As CHTMLParameters
77 oHTMLParameters HANDLE OF  @CHTMLParameters.

PROCEDURE-DIVISION.
|Instantiate an instance of @CHTMLParameters class.
|VB: Set oHTMLParameters = New CHTMLParameters
CREATE @CHTMLParameters HANDLE IN oHTMLParameters.

|Setup the schedule to be exported.
|VB: oHTMLParameters.FileName = App.Path & "\\" & "sampleschedule"
MODIFY oHTMLParameters @FileName = "sampleschedule".
|VB: oHTMLParameters.Overwrite = True
MODIFY oHTMLParameters @Overwrite = 1.
|VB: oHTMLParameters.HTMLHeader = "This is Header Text"
MODIFY oHTMLParameters @HTMLHeader = "This is Header Text".
|VB: oHTMLParameters.HTMLFooter = "This is Footer Text"
MODIFY oHTMLParameters @HTMLFooter = "This is Footer Text".
|VB: oHTMLParameters.PageTitle = "Sample Schedule Page"
MODIFY oHTMLParameters @PageTitle = "Sample Schedule Page".
|VB: oHTMLParameters.TableOnly = False
MODIFY oHTMLParameters @TableOnly = 0.
|VB: oHTMLParameters.UseFrames = True
MODIFY oHTMLParameters @UseFrames = 1.

|Export the Schedule as HTML - replace Schedule1 with name of your @Schedule handle or screen section item.
MODIFY Schedule1 @ExportHTML(oHTMLParameters)
    GIVING RETURN-CODE.


Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Dan & Rob,

When I execute the code that Dan submitted, I get a "Type Mismatch" error when the ExportHTML Method is invoked?

How do I know which type is incorrect?


Thanks for you help Dan & Rob,

Jason

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Hmm, the @CHTMLParameters class appears to be an IDispatch type which has not been usable in acucobol-gt. Don't know if version 6.2 has changed this.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Ok, it occured to me that version 6.2 let's you specify the variant type for an IDISPATCH type with the AS phrase. So, this line of code would change to:


MODIFY Schedule1 @ExportHTML(oHTMLParameters AS VT-DISPATCH)
    GIVING RETURN-CODE.


This explicitly passes oHTMLParameters as a dispatch variant type instead of the default iunknown type which was probably causing the mismatch.

I recommend you reference the 6.2 copybook activex.def in your program, otherwise VT-DISPATCH value is 9.

Also, check out the 6.2 Acucobol-GT Reference manual for the MODIFY verb, Format 1, Syntax Rule 21.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Have anyone tried to access the TimeFont Property of the schedule.

I can see the TimeFont as an option in the properties window in VB6 for the schedule, but I don't see it in acubench?


Here is the entry from the DEF file generated in 6.2

* TimeFont
PROPERTY-GET, 1745027179, @TimeFont
RETURNING "Font*", TYPE 9
* TimeFont
PROPERTY-PUTREF, 1745027179, @TimeFont,
"Font* (Property_Value)", TYPE 9


Here is the entry from the help file on the control.

Property TimeFont() As StdFont




Any help would be appreciated...

Thanks
Jason

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Have anyone tried to access the TimeFont Property of the schedule.

I can see the TimeFont as an option in the properties window in VB6 for the schedule, but I don't see it in acubench?


Here is the entry from the DEF file generated in 6.2

* TimeFont
PROPERTY-GET, 1745027179, @TimeFont
RETURNING "Font*", TYPE 9
* TimeFont
PROPERTY-PUTREF, 1745027179, @TimeFont,
"Font* (Property_Value)", TYPE 9


Here is the entry from the help file on the control.

Property TimeFont() As StdFont




Any help would be appreciated...

Thanks
Jason

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Jason,

We use the TimeFont property in our application. Here's a snippet:

77 SCHED-HANDLE HANDLE OF @Schedule.
77 SCHED-FONT-HANDLE HANDLE OF IFONTDISP.

. . .

INQUIRE SCHED-HANDLE @TimeFont IN SCHED-FONT-HANDLE.
MODIFY SCHED-FONT-HANDLE @Size = n. | (or any other properties of font...)

Be sure you have acuclass.def. I'm not sure about AcuBench because I don't use it. Hope this helps.

Rob

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Rob,

The font code worked great....

Have another question....

When the following code is executed.

MODIFY SS-SCHED, @ShowDay("01/08/2005").

I get a "member not found" error. Any idea why?


Thanks again for all your...your a life saver....

Jason

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Jason,

No idea... I have code very similar to that and it works fine. Make sure your "def" file was created by a current version of AXDEFGEN (I believe it should be the same version as the runtime).

Rob

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
If your using the def file I included with my sample, remember that it is two years old, and would be out of date with the current version of the schedule control, so you really need to recreate it with the axdefgen that matches your compiler and runtime. It is on the Tools menu of AcuBench.

It is typically a good rule of thumb to recreate your def file for the version of the component your using. So, if gravitybox for instance releases an updated schedule control, and you decide to release it with your product, you really should recreate the def file, recompile your programs and test before releasing.

Also, when you recompile your programs with an updated acucobol compiler, it may be necessary to recreate the def files to that compiler/runtime version as well. This is becasue acucorp will sometimes make changes to the definitions inside the def file. Sometimes these changes are obvious because of compile errors, other times they don't show up until you execute the programs with the runtime.

So, the two rules to follow with axdefgen def files:
1.) Make sure they match the version of the component(activex control).
2.) Make sure they match the version of the compiler and runtime.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Dan, I just want to state your contribution here is outstanding.

Gisle

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Rob,

Thanks for all your help. You too Dan.. I've been able to get everything working.... Ran into a little snag on the installation though.


It says on the website for gravity box that I only need to distribute these to files.

GBSCHEDULE.OCX, GBXMLPARSE.DLL.

I've sent these and registered them on a machine and I still get the message "Error creating active-x control".

Is there another file I'm missing?

thanks again for all the help....

Jason

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
I think this control was written in Visual Basic which means the vb runtime must be installed. You can download the free vb runtime here: http://www.karenware.com/progs/vbrun60-setup.exe

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Good thought, I tried it on one of the machines and still no luck. These are just out of the box IBM desktops running windows XP service pack 2.

Weird? I'm probably just missing some obvious piece....

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 03 January 2005]

Hi all,

I'm looking for an active-x component that allows for automatic appointment / scheduling / calendar views similar to the outlook calendar.

Does anyone have any suggestions?
Perhpas a license key is needed. Try adding this property to the screen section item for the schedule control:

LICENSE-KEY IS "E302D019560211D281AAF42500C10000"

Perhaps other issue is are you sending registered versions of the controls or the trial versions?

Actually, GravityBox should have given you a license key when you bought the control, so you'll probably need to use that one instead of the one above.

Also, is runtime version on that PC same as your compiler version? Are you compiling with -Z for prior runtime version? Also, make sure that PC does not have strange mix of wrun32.exe and .dll.