Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Hide days in month view print
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hide days in month view print

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


Joined: 27 January 2010
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote crichey Quote  Post ReplyReply Direct Link To This Post Topic: Hide days in month view print
    Posted: 27 January 2010 at 11:29am
Is it possible to hide days for the previous and subsequent months in the calendar print?  When we print, for example, the month of January - we only want to see dates in January in the month view, not dates from December and February for partial weeks.

Also - is it possible to show only the Month in the header without the mini calendar?
Carl
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 29 January 2010 at 2:44pm
Yes, you can do it now - https://forum.codejock.com/uploads/BetaOCX/CalendarBeta14.rar
CalendarControl.PrintOptions.ThreeSmallCal = False
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 29 January 2010 at 2:53pm
You can use smth like
    CalendarControl.PrintOptions.Header.TextCenter = "My Title String"
    CalendarControl.PrintOptions.PrintDateHeader = False
and in your print / printpreview handler use any string to title e.g. Month Name
Back to Top
crichey View Drop Down
Newbie
Newbie


Joined: 27 January 2010
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote crichey Quote  Post ReplyReply Direct Link To This Post Posted: 29 January 2010 at 3:50pm
I'm not sure that I explained my original question properly.  It sounds like the beta allows the mini calendars to be turned off, which is good and part of my original question.  My main issue is turning off the printing of surrounding days from previous and next month when printing a month view.

For example, in printing January, 2010, it looks like this currently:

27  28  29  30  31   1   2
 3   4   5   6   7   8   9
10  11  12  13  14  15  16
17  18  19  20  21  22  23
24  25  26  27  28  29  30
31   1   2   3   4   5   6

I would like it to look like this:

                     1   2
 3   4   5   6   7   8   9
10  11  12  13  14  15  16
17  18  19  20  21  22  23
24  25  26  27  28  29  30
31


I'm referring to the main calendar, not the mini calendar here.

Thanks!

Carl
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 29 January 2010 at 5:54pm
e.g.
Private Sub mnuPrintPreview_Click()
Dim dt As Date
Dim nt As Integer
Dim sName As String
    nt = CalendarControl.ActiveView.DaysCount
    dt = CalendarControl.ActiveView.Days(nt / 2).Date
    sName = Format(dt, "yyyy - mmmm")
    CalendarControl.PrintPreviewOptions.Title = "Calendar Control VB 6.0 Sample application"
    CalendarControl.PrintOptions.Header.TextCenter = sName
    CalendarControl.PrintPreview False
End Sub
Back to Top
crichey View Drop Down
Newbie
Newbie


Joined: 27 January 2010
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote crichey Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2010 at 12:17pm
Thanks - again, this was only a response to part of my question and had already been answered before. 

Carl
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.