---
name: "hk_exporthtml"
section: "1"
platform: "linux"
package: "libhk-classes-dev"
version: "0.8.3-4"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/hk_exporthtml"
---

# hk\_exporthtml(1)

exports a datasource to a html file. hk\_exporthtml is part of the hk\_classes package.

## NAME

hk\_exporthtml - exports a datasource to a html file. hk\_exporthtml is part of the hk\_classes package.

## SYNOPSIS

**hk\_exporthtml -d driver -b database \[OPTIONS\] datasourcename**

## DESCRIPTION

exports the result set of a query or a table to a HTML file. The data will be printed to stdout. To create a table or a query use **knoda (http://www.knoda.org).** If the datasource is not a table set the **--query** option.

## OPTIONS

- \-b, --database=DATABASE

  database name

- \-d, --driver=DRIVERNAME

  set the SQL-driver (e.g. mysql). You can get a list of all existing SQL-drivers with **-l** or **--list**

- \-t, --tabletags=TABLETAGS

  The tags of the \<table\> statement, e.g.  BORDER=1 CELLSPACING=1

- \--aftertable=AFTERTABLETEXT

  text displayed after the table

- \--beforetable=BEFORETABLETEXT

  text displayed before the table

- \-f, --filter=FILTER

  filter

- \--groupcolumn=COLUMNNAME

  for each group will be created an extra table

- \-h, --host=HOST

  IP-number or name of hosts

- \--headsection=HEADSECTION

  meta data in the \<HEAD\>\</HEAD\> section

- \-p, --password=PASSWORD

  user password

- \-q, --query

  if set the datasource is a query, else it is a table

- \-r, --port=PORT

  TCP-port on host

- \-u, --user=USERNAME

  user name

- \-?, --help

  display help list

- \--usage

  give short usage message

- \--version

  version and author of hk\_classes

## AUTHOR

This manual page was written by Mike Schacht \<mschacht@alumni.washington.edu\> for the Debian project (but may be used by others).

## SEE ALSO

[**hk\_actionquery**(1)](/hk_actionquery/1.md), [**hk\_exportcsv**(1)](/hk_exportcsv/1.md), [**hk\_importcsv**(1)](/hk_importcsv/1.md), [**hk\_report**(1)](/hk_report/1.md), [**hk\_exportxml**(1)](/hk_exportxml/1.md)
