Job Report Formatting

Having problems with or questions about SheetCam? Post them here.
Post Reply
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Job Report Formatting

Post by David_Lelen01 »

Hey Les, looking for some guidance here. My report formatting got all jumbled up with the new release. I know basically nothing about html coding and it proves to be a very difficult thing for me to learn. It seems like there a million and one different methods and syntax that an be used. Every where i look, it says something different.

I am trying to use a table setup instead of just putting a crap-ton of spaces to make everything look pretty. Problem is, no matter what i code, the table does not change. Can you offer any advice or resources?

Here is the section i am working on:

Code: Select all

<!--LaserTool-->
<table border="0" width="95%" cellspacing="0" bordercolordark="white" bordercolorlight="black">
    <col width="10%">
    <col width="70%">
    <col width="10%">
	<col width="10%">
    <tr>
        <td align="left">
            <font size="0"><b>Machine:</b>
        </td>
		<td align="left">
            <font size="0">@Type@ Machine
        </td>
        <td align="left">
            <font size="0"><b>Material:</b>
        </td>
		<td align="right">
            <font size="0">@Material_Type@
        </td>
    </tr>
and this is what it comes out looking like, which is nothing like what i have coded.
Job Report.PNG
Job Report.PNG (15.11 KiB) Viewed 1167 times
I'm not going to waste time listing all the different formatting and syntax i have tried. It always comes out looking like this.

And the text size makes no sense either. I set it to size 11 and it looked like size 48pt. This is what i have now and looks closest to 11pt.

Code: Select all

<p align="left"><b><font size="3">Job:&nbsp;</b> <font size="3">@JobName@<br><b>Customer:</b></p>
User avatar
Les Newell
Site Admin
Posts: 3661
Joined: Thu May 11, 2006 8:12 pm

Re: Job Report Formatting

Post by Les Newell »

HTML is pretty ugly. This is mainly due to the fact that it has evolved over many years. It also doesn't help that the HTML renderer only supports a limited subset of the HTML commands.

Try this:

Code: Select all

<table border="0" width="95%" cellspacing="0" bordercolordark="white" bordercolorlight="black">
    <tr style="font-size:15pt">
        <td width="10%">
            <b>Machine:</b>
        </td>
		<td width="70%">
            @Type@ Machine
        </td>
        <td width="10%">
            <b>Material:</b>
        </td>
		<td width="10%">
            @Material_Type@
        </td>
    </tr>
Note that I only set the font size once for the whole row. You could move it up into the <table> tag if you want the whole table to be the same font size.
You only need to define the column widths in the first row.

By the way, https://www.w3schools.com is an excellent HTML reference. Their try it editor allows you to quickly play with code and see the results.
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Re: Job Report Formatting

Post by David_Lelen01 »

That doesn't work either... neither the column sizes nor the text sizes are doing what they are supposed to. Could i perhaps not have some necessary package installed or something?
User avatar
Les Newell
Site Admin
Posts: 3661
Joined: Thu May 11, 2006 8:12 pm

Re: Job Report Formatting

Post by Les Newell »

If you let me have a copy of your report I'll take a look.
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Re: Job Report Formatting

Post by David_Lelen01 »

Its kinda a mess and incomplete right now, but here it is as is right now.

And this is sort of what i am trying to get it to look like. I did this just by putting spaces all over the place but it changes depending on the length of text in places.
Report Formatted.PNG
Report Formatted.PNG (84.29 KiB) Viewed 1144 times
And this is what the attached report file looks like when ran...
Report As Is.PNG
Report As Is.PNG (91 KiB) Viewed 1144 times
Attachments
Report.zip
(1.1 KiB) Downloaded 59 times
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Re: Job Report Formatting

Post by David_Lelen01 »

Hey Les, have you had a chance to give the reports any more thought? I know you mentioned something about getting away from the HTML and totally redoing how the reports work.
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Re: Job Report Formatting

Post by David_Lelen01 »

Hey Les, the job report window also does not remember its last size. Could you possibly squeeze that into the next update? The default size is too small with the notes box.
Post Reply