Author Topic: Beersmith 3 Report Support  (Read 1989 times)

Offline tdibratt

  • BeerSmith Brewer
  • ***
  • Posts: 28
  • BeerSmith 2 Rocks!
Beersmith 3 Report Support
« on: August 17, 2018, 07:17:55 AM »
Hi there, I had created a custom report in Beersmith 2 that worked great.  Now upgraded to Beersmith 3, and things not so good.

Example in Beersmith 2 $fermentables produced a table like structure:
Weigh and Mill Twice
Fermentables
Amt    Name    Type    #    %/IBU
6 lbs 10.4 oz    Pilsner (2 Row) Bel (2.0 SRM)    Grain    1    72.7 %
1 lbs 4.0 oz    Corn, Flaked (1.3 SRM)    Grain    2    13.6 %
6.7 oz    Cara-Pils/Dextrine (2.0 SRM)    Grain    3    4.5 %
13.3 oz    Corn Sugar (Dextrose) (0.0 SRM)    Sugar    4    9.1 %

In Beersmith 3, it just a long string:
 
Weigh and Mill Twice Amt Name Type # %/IBU Volume 6 lbs 10.4 oz Pilsner (2 Row) Bel (2.0 SRM) Grain 1 72.7 % 0.52 gal 1 lbs 4.0 oz Corn, Flaked (1.3 SRM) Grain 2 13.6 % 0.10 gal 6.7 oz Cara-Pils/Dextrine (2.0 SRM) Grain 3 4.5 % 0.03 gal 13.3 oz Corn Sugar (Dextrose) [Boil] (0.0 SRM) Sugar 4 9.1 % 0.06 gal

The HTML is:
<tr>
      <td width="8" style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0cm; padding-bottom: 0.05cm; padding-left: 0.05cm; padding-right: 0cm">
         <p class="p2">&nbsp;</p>
      </td>
      <td width="632" style="border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: 1px solid #000000; padding-top: 0cm; padding-bottom: 0.05cm; padding-left: 0cm; padding-right: 0.05cm">
         <p class="p2">Weigh and Mill Twice $fermentables</p>
      </td>
   </tr>

Any ideas?

Thx

Offline GigaFemto

  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 348
  • Muonic Matter Rocks!
Re: Beersmith 3 Report Support
« Reply #1 on: August 17, 2018, 08:55:37 AM »
It works fine on my system. Have you included the stylesheet in your html?

--GF

Offline tdibratt

  • BeerSmith Brewer
  • ***
  • Posts: 28
  • BeerSmith 2 Rocks!
Re: Beersmith 3 Report Support
« Reply #2 on: August 17, 2018, 10:25:20 AM »
have not changed from BS2 to BS3.  It worked in BS2.  I am not an expert in HTML coding but had it working.

see attached

Offline tdibratt

  • BeerSmith Brewer
  • ***
  • Posts: 28
  • BeerSmith 2 Rocks!
Re: Beersmith 3 Report Support
« Reply #3 on: August 17, 2018, 10:30:54 AM »
i should mention  i am using BS3 on Ubuntu 16.04

Offline GigaFemto

  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 348
  • Muonic Matter Rocks!
Re: Beersmith 3 Report Support
« Reply #4 on: August 17, 2018, 10:57:04 AM »
Attached is a pdf printout of one of my recipes using your report. The $fermentables part came out as a table. I don't have any idea why it isn't working for you. I did notice that you haven't included the BeerSmith standard style sheet. If you add this line in your <head> section and put the style.css file in your Reports directory it will include the BeerSmith styles:
<link rel="stylesheet" href="style.css" type="text/css">

That might not fix your problem, but it will change the appearance of your report and give you reports that look more like the built-in ones. If you don't like that look, just delete the line above.

--GF

Offline tdibratt

  • BeerSmith Brewer
  • ***
  • Posts: 28
  • BeerSmith 2 Rocks!
Re: Beersmith 3 Report Support
« Reply #5 on: August 17, 2018, 11:14:44 AM »
Solved!  When I defined the report to BS3, I inadvertantly set it to plain txt vs HTML type report.  It looks better than before..

thx for the help