Print Page | Close Window

A Few Access Questions

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=6375
Printed Date: 23 November 2024 at 2:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: A Few Access Questions
Posted By: bardaroart
Subject: A Few Access Questions
Date 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




Replies:
Posted By: sserge
Date 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


Posted By: bardaroart
Date Posted: 12 February 2007 at 10:24am
i got the print preview to work -

 Call CalendarControl1.ShowPrintPageSetup


Posted By: bardaroart
Date 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





Posted By: sserge
Date Posted: 12 February 2007 at 3:00pm
CalendarControl1.PrintPreview


Posted By: bardaroart
Date 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


Posted By: bardaroart
Date Posted: 12 February 2007 at 7:00pm
 CalendarControl1.PrintPreview 0

this code opens the print preview window



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net