dbpExportToHTML - Forum

Forum Navigation
You need to log in to create posts and topics.

dbpExportToHTML

Hello All,

I never used dbpExportToHTML . I gave it a try because of a project I'm working on...

Now I have an issue with the #STYLE.

The documentation says the following:

#STYLE

This code will be replaced with a cascading style sheet (css) based on the properties assigned to the table grid using the dbpSetGridStyle action. For example, the following will generate a HTML document that closely resembles the foratting used by the table grid:

But it seems that the dbpSetGridStyle action never was implemented, am I correct???

I tried something like this:

SetVar "[STYLE]" "<html><head><title><#TITLE></title>[#13]<style type=text/css>[#13][#46]odd {FONT-FAMILY: Segoe UI[#59]FONT-SIZE: 9pt[#59]COLOR: #000000[#59]BACKGROUND: #FFFFFF[#59]}[#13][#46]even {FONT-FAMILY: Segoe UI[#59]FONT-SIZE: 9pt[#59]COLOR: #FFFFFF[#59]BACKGROUND: #09426E[#59]}[#13][#46]Column0 {TEXT-ALIGN: center[#59]}[#13][#46]Column1 {TEXT-ALIGN: left[#59]}[#13][#46]Column2 {TEXT-ALIGN: left[#59]}[#13][#46]Column3 {TEXT-ALIGN: left[#59]}[#13][#46]Column4 {TEXT-ALIGN: left[#59]}[#13][#46]Column5 {TEXT-ALIGN: right[#59]}[#13][#46]Column6 {TEXT-ALIGN: right[#59]}[#13][#46]Column7 {TEXT-ALIGN: right[#59]}[#13][#46]Column8 {TEXT-ALIGN: right[#59]}[#13]</style>[#13]</head><body>"

dbpExportToHTML "fame" "fame_xls" "[PubDir]grid.html" "Range=All;IncludeHidden=Yes;IncludeFieldNames=Yes;Title=[BARCODE];HtmlHeader=[STYLE]"

But this seems also not to work???

Does someone experience with this and give me some support.

 

Thanks a lot,

 

Eric Beerhorst

@ebear

I do not have experience, but the Help file says ...

#STYLE

This code will be replaced with a cascading style sheet (css) based on the properties assigned to the table grid using the dbpSetGridStyle action.

For example, the following will generate a HTML document that closely resembles the formatting used by the table grid:

<head>

<style type=text/css>

#STYLE

</style>

</head>

I think it meant to say dbpSetGridProperties.

So, try and setup dbpSetGridProperties to your liking ... then try using the example on this page ...

https://neodbprohelp.visualneo.com/ImportExport.html#dbpExportToHTML

 

 

Hello Gaev,

Yes you are complete correct. dbpSetGridProperties does set the STYLE, the dbpSetGridStyle action doesn't exists.

@luis, maybe if you have time it would be good to change this. It took me some hours...

Thanks a lot for your support.

Best regards,

Eric