A Few Access Questions |
Post Reply |
Author | ||||
bardaroart
Newbie Joined: 11 February 2007 Status: Offline Points: 17 |
Post Options
Thanks(0)
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 |
||||
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
|||
Anyway -- please look at our VB samples, from which you can simply copy/paste some pieces of code.
Currently there is only 1 more theme available -- the default one (Office 2003), and you can switch to it by calling CalendarControl1.SetTheme Nothing
Simply set .ViewType to any required value before calling .PrintPreview method. You can restore it after if needed.
Call .ShowPrintPageSetup -- WBR, Serge |
||||
bardaroart
Newbie Joined: 11 February 2007 Status: Offline Points: 17 |
Post Options
Thanks(0)
|
|||
i got the print preview to work -
Call CalendarControl1.ShowPrintPageSetup |
||||
bardaroart
Newbie Joined: 11 February 2007 Status: Offline Points: 17 |
Post Options
Thanks(0)
|
|||
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 |
||||
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
|||
CalendarControl1.PrintPreview
|
||||
bardaroart
Newbie Joined: 11 February 2007 Status: Offline Points: 17 |
Post Options
Thanks(0)
|
|||
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 |
||||
bardaroart
Newbie Joined: 11 February 2007 Status: Offline Points: 17 |
Post Options
Thanks(0)
|
|||
CalendarControl1.PrintPreview 0
this code opens the print preview window |
||||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |