Generate HTML Report without Style directive in Header

Stimulsoft Reports.NET discussion
Post Reply
Joost Verdaasdonk
Posts: 6
Joined: Mon Aug 25, 2008 11:41 am
Location: Breda

Generate HTML Report without Style directive in Header

Post by Joost Verdaasdonk »

Hi All,

I hope an answer is possible to this question. :biggrin:

I'm trying to accomplish the following:
1. I want to generate a HTML report (with formats)
2. It needs to be inserted in an existing HTML page (So I need only Body.InnerHTML)
3. But I need full Inline html in the body (so also the color css in the tag info)

The below code is an example of how my report HTML looks like now.
But I need the same report without:
* Html tags (I can parse those out)
* Body tags (I can parse those out)
* Head section
* Style section -> the problem however is that I need the style info in the tags of the text. (so no class usage)

Does Stimulsoft offer me something like this? And am I looking in the wrong place?
Thanks for the help.

PS the code to generate the report is:

Code: Select all

                                        StiHtmlExportService service = new StiHtmlExportService();
                                        service.ExportHtml(stiReport, stream);

Code: Select all

 
  Report
  
  .sdd89e2f8{background-color:LightSteelBlue;color:Navy;Font:bold 10pt Arial;text-align:left;vertical-align:middle;}
  .se3055e7b{background-color:RoyalBlue;color:White;Font:bold italic 10pt Arial;text-align:left;vertical-align:top;}
  .s6cc5b4f9{background-color:LightGrey;Font:bold 10pt Arial;text-align:left;vertical-align:top;}
  .s1925ce08{background-color:LightGrey;color:DimGray;Font:bold italic 10pt Arial;text-align:left;vertical-align:top;}
  

 
 
   Stimulsoft Reports.Net - Demo Version
    
     
    
     01Directie
    
     CodeNaamVersie
    
     
    
     01Documentje003
    
     
    
          01.01Doelstellingen, Strategie & Beleid
    
     CodeNaamVersie
    
     
    
     DSB-001Doelstellingen001
    
     DSB-002Strategie002
    
     DSB-003Beleid001
    
     testtest1
    
     
    
          01.02Organigrammen
    
     CodeNaamVersie
    
     
    
     Organi-001Algemeen Organigram001
    
     Organi-002Organigram van moederorganisatie en groepsmaatschappijen01
    
     
    
          01.05Formulieren
    
     CodeNaamVersie
    
     
    
     tttttt1
    
     
    
               01.05.02Webformulieren
    
     CodeNaamVersie
    
     
    
     WForm-001Sollicitatieformulier voor functie van CEO001
    
     
    
     02Inkoop
    
     CodeNaamVersie
    
     
    
     
    
          02.01Algemeen
    
     CodeNaamVersie
    
     
    
     ALG-001Algemene Inkoop Aspecten001
    
     
    
          02.06Calculaties
    
     CodeNaamVersie
    
     
    
     Calc-001Calculatiemodel001
    
     
    
     99Inhoudsopgaves
    
     CodeNaamVersie
    
     
    
     99-01Inhoudsopgave002
    
   
 
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Generate HTML Report without Style directive in Header

Post by Ivan »

Hello,

We have added it in our to-do list.

We will inform you in this topic when this feature is available.

Thank you.
Joost Verdaasdonk
Posts: 6
Joined: Mon Aug 25, 2008 11:41 am
Location: Breda

Generate HTML Report without Style directive in Header

Post by Joost Verdaasdonk »

Hi Ivan,

Thanks for your feedback, now I can stop lookin. ;)
We'll use a workarround for now by parsing things out and await a change in the object model.

Thanks
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Generate HTML Report without Style directive in Header

Post by Ivan »

Hello,

We added new property StiHtmlExportSettings.UseStylesTable, by default = true;
If false, all style info will be in the tags of the text.
This feature will be available in next prerelease build from Feb, 2.

Thank you.
Post Reply