Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - A Few Access Questions
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

A Few Access Questions

 Post Reply Post Reply
Author
Message
bardaroart View Drop Down
Newbie
Newbie


Joined: 11 February 2007
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote bardaroart Quote  Post ReplyReply Direct Link To This Post Topic: A Few Access Questions
    Posted: 11 February 2007 at 9:04pm
I have the demo and ordered a copy of the calendar control..

I am using it in Access 2003

1. How Can I toggle Themes using Buttons?

I have a command button that sets the theme to Office 2007 using this code..

 CalendarControl1.SetTheme New CalendarThemeOffice2007

how can I toggle between the other themes available?

2. How can I print or preview a report that matches the current calendar view and date range? The sample only shows the week view...

3. how can I invoke the page setup from a button?

Thanks - Anthony Bardaro

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2007 at 9:09am
Originally posted by bardaroart bardaroart wrote:


I am using it in Access 2003


Anyway -- please look at our VB samples, from which you can simply copy/paste some pieces of code.

Originally posted by bardaroart bardaroart wrote:


1. How Can I toggle Themes using Buttons?

I have a command button that sets the theme to Office 2007 using this code..

 CalendarControl1.SetTheme New CalendarThemeOffice2007

how can I toggle between the other themes available?


Currently there is only 1 more theme available -- the default one (Office 2003), and you can switch to it by calling
 CalendarControl1.SetTheme Nothing

Originally posted by bardaroart bardaroart wrote:


2. How can I print or preview a report that matches the current calendar view and date range? The sample only shows the week view...


Simply set .ViewType to any required value before calling .PrintPreview method.

You can restore it after if needed.


Originally posted by bardaroart bardaroart wrote:


3. how can I invoke the page setup from a button?


Call .ShowPrintPageSetup


--
WBR,
Serge
Back to Top
bardaroart View Drop Down
Newbie
Newbie


Joined: 11 February 2007
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote bardaroart Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2007 at 10:24am
i got the print preview to work -

 Call CalendarControl1.ShowPrintPageSetup
Back to Top
bardaroart View Drop Down
Newbie
Newbie


Joined: 11 February 2007
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote bardaroart Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2007 at 11:28am

2. How can I print or preview a report that matches the current calendar view and date range? The sample only shows the week view...


Simply set .ViewType to any required value before calling .PrintPreview method.

You can restore it after if needed.


I used the code below to print a report - it works well...is there a way to control the PrintPreview to preview the report?


CalendarControl1.PrintCalendar 0

I tried this

CalendarControl1.showprintdialog

but it did not work

Thanks! - AB



Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2007 at 3:00pm
CalendarControl1.PrintPreview
Back to Top
bardaroart View Drop Down
Newbie
Newbie


Joined: 11 February 2007
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote bardaroart Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2007 at 5:38pm
Originally posted by sserge sserge wrote:

CalendarControl1.PrintPreview


This does not work in Access 2003 -

a message appears saying "Argument Not Optionsl"

  I LOVE this control - once I learn the basic features for use in MS Access, I will be on my way to using it...

Thanks! - Anthony
Back to Top
bardaroart View Drop Down
Newbie
Newbie


Joined: 11 February 2007
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote bardaroart Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2007 at 7:00pm
 CalendarControl1.PrintPreview 0

this code opens the print preview window
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.