Jump to content
  • 0

Hide Database Headers on Export


ericjhberg

Question

One nice feature would be to have the option to check a box to "Hide All Database Headers" upon the export of a sheet layer.

I know there are scripts to hide all the database headers, but it would be nice to incorporate this functionality into the export process to ensure that no headers end up visible in exports.

Link to comment

4 answers to this question

Recommended Posts

  • 0

+1

I can't think of a reason to ever have the database header open on a worksheet inserted into a drawing. Maybe someone has a use case for that. I wonder if we couldn't just have all database headers collapse when the worksheet is inserted, and open when editing.

To remind myself, I've found it helpful to turn that script into a menu command and put it under the File menu near Print and Export.

mk

Link to comment
  • 0

Mike

I think everybody's worksheet wish lists go several versions back :-)

If anyone wants to try a script solution, there are probably several versions of the close database header script out there. This is the one I use. (Make sure you set the language to Python). You can easily add it to your workspace as a menu command or just run it from the resource browser.


def CloseThatHeader(h):
WkShtResource = vs.GetWSFromImage(h)
vs.SetObjectVariableBoolean(WkShtResource, 82, False)
vs.RecalculateWS(WkShtResource)

vs.ForEachObject(CloseThatHeader, "T=WORKSHEET")

mk

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...