VARCHART XGantt - Frequently Asked Questions
1. What can be Done if Printing Problems Occur?
If in ActiveX printing of your diagram is impossible or if you cannot set up the printer, please verify whether the file vcprct32.dll exists. Also, please verify if the file can be located by the PATH settings, and if the Windows default printer was set up.
If the file vcprct32.dll does not exist, please contact the support of NETRONIC Software GmbH.
2. How to Make VARCHART XGantt Use a Modified INI file
Some of the VARCHART XGantt settings in ActiveX cannot be modified on the property pages. Still, you can adjust them by the INI file:
- Open the General property page. The Configuration file field shows the current configuration file (for example project.ini).
- Please click on the Browse button. The Load/Save dialog will open. Please enter a file name into the Temporary data file field to be used as a temporary dummy configuration file, such as dummy.ini. Click on Save.
- Now click on the OK or Apply button of the General property page. The configuration file dummy.ini will automatically be generated and applied.
- You can now modify your INI file which in our example is the project.ini, by some text file editor and save your changements.
- On the General property page, select the modified file in the Configuration file field (project.ini) and click on OK. Your modified INI file is being effective from now on.
3. How can Context Menus be Disabled?
You can prevent a predefined context menu from popping up by setting the returnStatus to vcRetStatNoPopup. The below programming samples apply to the ActiveX edition and VB6:
//switching off the context menu of the diagram
Private Sub VcGantt1_OnDiagramRClick (ByVal x As Long, ByVal y As Long, returnStatus As Variant)
returnStatus = vcRetStatNoPopup
End Sub
//switching off the context menu of links
Private Sub VcGantt1_OnLinkRClickCltn (ByVal linkCltn As VcGanttLib.VcLinkCollection, ByVal x As Long, ByVal y As Long, returnStatus As Variant)
returnStatus = vcRetStatNoPopup
End Sub
//switching off the context menu of nodes
Private Sub VcGantt1_OnNodeRClick (ByVal node As VcGanttLib.VcNode, ByVal location As VcGanttLib.LocationEnum, ByVal x As Long, ByVal y As Long, returnStatus As Variant)
returnStatus = vcRetStatNoPopup
End Sub
4. What Prevents Nodes from Being Generated Interactively?
Nodes can only be created interactively if:
- ... on the General property page the check box Allow creation of nodes and links was activated
- ... in the programing code the property AllowNewNodesAndLinks was not set to False
- ... the return status of the event OnNodeCreate was not set to vcRetStatFalse.
Sub Form_Load
VcGantt1.AllowNewNodesAndLinks = False
End Sub
5. How can VARCHART XGantt be Licensed?
If you wish to continue an expired licence or to register a component for the first time, please open the Licensing dialog box on the General property page and click on the Request button.
Then the Request License Information dialog will open. Please enter your registration number, your name and the name of your company and click on Send email to NETRONIC. An email to NETRONIC will be generated automatically. As soon as we have received it, we will generate your license code and return it to you.
Please copy the license code to the text field of the licensing dialog and click on the button Activate License. Please leave the property pages of VARCHART XGantt by OK. Re-open some property page, make some change and store it. The new licence will then be activated.
6. How to Integrate a License File into an ASP.NET Website Project of Visual Studio 2005
In a website project, Visual Studio 2005 stores the license information for XGantt ASP.NET to the file app_licenses.dll. When building a project (Build > Rebuild all), the file is not updated. If you received a new license file, it is necessary to go through the steps described below to enforce the acceptance of the new license:
- Open the project in VS 2005
- In the project explorer, click on the file NETRONIC.XGantt.Web.dll, which you can find in the directory bin. In the field Auto-refresh path the property window indicates the folder from which the file NETRONIC.XGantt.Web.dll is updated automatically.
- Please close VS 2005.
- Please copy the license file NETRONIC.XGantt.Web.VcGantt.lic to the folder mentioned in step 2.
- Please open the project in VS 2005.
- Please rebuild the project by clicking on Build > Rebuild all. The license file is now copied to the bin folder of the project.
Please close VS 2005 and re-open the project in VS 2005. - In the project explorer, please click on the file licenses.licx by using the right mouse button and select build runtime licenses from the pop-up menu. The file app_licenses.dll will be rebuilt and the new license information will be copied from the file NETRONIC.XGantt.Web.VcGantt.lic to the DLL file.
- Please close VS 2005 and re-open the project in VS 2005.
- Re-build the project by Build > Rebuild all once again.
7. What if Problems Occur with Registering?
If during registration of VARCHART XGantt an error message occurs "REGSVR32 Error Return: 0X0000007e", the file vcprct32.dll does not exist or is not stored in a directory specified by the PATH.
If during registration of VARCHART XGantt an error message occurs "REGSVR32 Error Return: 0X000000b6" and "Number 6877 not found in dynamic link library MFC42.DLL", the file mfc42.dll does not exist or is not stored in a directory specified by the PATH.
If one of the files does not exist, please contact the support of NETRONIC Software GmbH.
8. How to Unhide Overlapping Activities
To avoid bottlenecks in holiday rosters or machine allocations, overlapping activities in a group can be made visible.
Activities can overlap if the activities were grouped and if on the Sorting property page the Nodes in one line option was selected. With the Nodes in one line option, the activity groups can be collapsed and expanded. If a group was collapsed, overlapping activities cannot be detected. If a group is expanded, the activities are staggered so that overlapping activities become visible.
To make overlapping activities in a group visible, select the Nodes in one line option on the Sorting property page to display the activities of a group in one line. If the activities of a group overlap, they will be displayed in different lines even when the Nodes in One Line option is activated, allowing you to see collisions at a glance.
If the activities were collapsed, overlapping activities cannot be detected. Therefore you should deactivate the Modifications allowed option to prohibit the user from switching between these two types of display. When the Initially collapsed option is not activated, the groups will be displayed in their expanded states, i.e. overlapping activities can be instantly recognised as they are displayed beneath each other in separate lines.
9. How to Move a Bar Into a Gantt Graph by Clicking in the Table
The event OnNodeLClick captures both, the node and the information InTable or InDiagram. If the table was clicked on (InTable), the relevant date of the node is retrieved and transferred to the VARCHART XGantt object using the ScrollToDate method.
Code Sample:
Private Sub VcGantt1_OnNodeLClick
(ByVal node As VcGanttLib.VcNode,
ByVal location As VcGanttLib.LocationEnum,
ByVal x As Long, ByVal y As Long,
returnStatus As Variant)
Dim myDataDef As VcDataDefinition
Dim myDataDefTable As VcDataDefinitionTable
Dim myDataField As VcDefinitionField
Dim myIndex As Integer
If location = vcInTable Then
// if the index of the field "Start" is unknown
Set myDataDef = VcGantt1.DataDefinition
Set myDataDefTable = myDataDef.DefinitionTable(vcMaindata)
Set myDataField = myDataDefTable.FieldByName("Start")
myIndex = myDataField.ID
VcGantt1.ScrollToDate node.DataField(myIndex), vcLeftAligned, 2
End If
End Sub
10. How to Integrate a License File into an ASP.NET Website Project of Visual Studio 2005
If you touch the time scale on the extreme left of the visible area keeping the left mouse button depressed to zoom the timescale, you can easily reach a factor far in excess of 1000%. To control this, use the OnTimeScaleSectionRescale event. The below code sample shows how to allow for a twofold enlargment at maximum.
