Free Support Forum -

Change to use 24-hr Calendar?

I can’t seem to find an example on how to set which Calendar to use for a project file. I am attempting to create a new project xml file, and wish to have it use the default 24 hour Calendart. Can anyone point me in the right direction for how I might accomplish this? Thanks for your time.

Dear Brian,

You can use Calendar property of Project, Task or Resource class to set a calendar for the project, task or resource respectively. project.CalendarCalendar.MakeStandardCalendar API can be used to make a standard calendar but if you want to make a 24 hours calendar, you can either copy it from another project by using project.Calendar API or create a new calendar by manually adding weekdays and working hours as described in these topics.

A new feature request to provide an API to create a 24 hours calendar has been logged into our issue tracking system as
<!–[if gte mso 9]>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

<![endif]–><span style=“font-size:13.5pt;font-family:“Arial”,“sans-serif”;
. We will keep you updated on this issue in this thread.

Please feel free to contact us in case you have further comments or questions.

Best Regards,

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.