DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

table of content

hello everybody...
Does somebody know, how i create a table of content for my report?
I would like to have a table with all sheet names and their page number at the beginning of a report.
This table of content should be able to link to that page like a hyperlink.
 
how can i implement this?
 
thank you very much,
 
michael
0 Kudos
Message 1 of 3
(3,615 Views)

Hello Michael!

You can use a simple 2D Table for this. Unfortunately 'GraphSheetName' is a procedure with the result in 'GraphSheetName'. To use this in a table you have to make a user command like this:

Option Explicit
 
Public Function GraphSheetNameGet(ByRef nSheet)
  If nSheet <= GraphSheetCount Then
    Call GraphSheetNGet(nSheet)
    GraphSheetNameGet = GraphSheetName
  Else
    GraphSheetNameGet = ""
  End If
End Function

Add to your table a expression column with '@@GraphSheetNameGet(D2TabRow)@@' as expression and '@@GraphSheetCount@@' as your row count. To get a Page number add another expression column with '@D2TabRow@' as expression. If you want to use a fixed table length you need another user command for a nice page number.

Sorry, there are no hyperlinks in DIAdem!

Matthias

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 3
(3,607 Views)

For hyperlink capability, it seems as though it might be possible to write a script that would export your REPORT to HTML, and then insert some text in your HTML page to have a list of all of your sheets with hyperlinks, etc.  I have not used the HTML export much myself though, so I'm probabaly not the best one to give advice!

Julia

0 Kudos
Message 3 of 3
(3,605 Views)