CalcBuilder Forum

Problem with output and PDF file

User TheFencepedia 2024-07-10 03:48:12

Hi,

So I figured out how I am going to handle payments, so that's not an issue anymore. However, I am having some problems with outputs and the PDF the system generates.

For the outputs, when I was entering a sort of SKU in the database field for drop down lists, it was populating the exit layout with the database field rather than the frontend field, which is not correct. So I copied the frontend field to the database field, and now it puts nothing in there.. How do I get it to give me the frontend field and NOT the database value there?

Also, how do I NOT show the input on the output page? I don't want to have the form above if possible.

Then there's the PDF export, which is showing a double line border, where there should be a single line. How do I fix that formatting? It should appear EXACTLY as it does on the exit layout.

You can test it here: https://drawafence.com/index.php/try-it

In the interest of getting this resolved quickly, so I can keep building my site, I've also created an Admin account for you with the following credentials.

Moonsoft support 2024-07-10 10:52:00

Hi,
sorry but we can't fully understand the question regarding the database field, not sure what do you mean by 'copied the frontend field to the database field'. Can you please let us know which is the field you're trying to configure, and more details about what you're trying to get? (expected result/actual result).

Regarding pdf contents, you can configure if you want to include the input section and/or output section together with any other content, please check the parameters Print preferences->pdf

Include Form input
and
Include Result

and let us know if you have further issues.

Finally, about the table borders, please note at the pdf you're sending the content you set at the editor, while at the page you may have any other css files (from templates, other components, etc) that can slightly change the look and feel of the webpage and make it different from the pdf view. If we go to the code you have set at your exit layout we see you have set a border for the table, and also a border for each cell:

table border="1"

td colspan="2" style="border: 1px solid #000000; padding: 5px;"

This should show 2 borders like you see it the pdf. But at your site, your template includes a specific css changing this behavior.

For the pdf, we suggest to try to remove that table border, or remove the cellspacing (you can do it with your editor, at table properties) so it will generate:

table border="1" cellspacing="0"

and recheck the output.

Hope this helps, regards
Moonsoft Team

User TheFencepedia 2024-07-18 05:35:11

Hi,

This was working for a while, but I upgraded to JCE paid, and now it's back to having the space between the borders.

Here's the code. What am I doing wrong? I just want the PDF version to look the same as the screen.

<table border="1" cellpadding="5" cellspacing="0">
<tbody>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><img src="images/4_to_6_high_with_bottom_wire_in_concrete.jpg" alt="4 to 6 high with bottom wire" width="700" height="335" style="float: left;" />                                       </td>
<td style="border: 1px solid #000000;"><span style="font-size: 8pt;"></span>
<p><span style="font-size: 12pt;"><strong>Specification:</strong></span></p>
<p> </p>
<p><span style="font-size: 8pt;">Fence to be ##FenceHeight## high.</span></p>
<p><span style="font-size: 8pt;">Terminal posts to be ##TerminalPosts## mild steel tubing, installed at each end, corner, and gate in ##TerminalPostConcreteDiameter## inch diameter by ##TerminalPostConcreteDepth## inch deep concrete footings.</span></p>
<p><span style="font-size: 8pt;">Terminal posts will be fitted with steel tension bands at approximately 12-inch centers to accommodate tension bars.</span></p>
<p><span style="font-size: 8pt;">Line posts to be ##LinePosts## spaced at ##LinePostSpacing## foot centers and installed in ##LinePostConcreteDiameter## inch diameter by ##LinePostConcreteDepth## inch deep concrete footings.</span></p>
<p><span style="font-size: 8pt;">Terminal posts are to have dome caps, and line posts are to have eye tops/loop caps of sufficient size to cover the top of each post completely and prevent water ingress.</span></p>
<p><span style="font-size: 8pt;">Chain link fabric to be ##ChainLinkFenceFabricType##, with a ##ChainLinkFabricFinish## with a matching ##BottomWireType## and ##FittingMaterial## fittings.</span></p>
<p><span style="font-size: 8pt;">Fence ties to match the fence are to be installed at ##TieWireSpacing## inch centers, and hog rings to attach fence fabric to the bottom wire to be spaced at ##HogRingSpacing## inches.</span></p>
<p> </p>
</td>
</tr>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><strong><span style="font-size: 12pt;">##FenceColor## ##ProjectType## Chain Link Fence ##FenceHeight## High</span></strong></td>
<td rowspan="6" style="border: 1px solid #000000; vertical-align: top;">
<p><strong><span style="font-size: 12pt;">##CompanyName##</span></strong></p>
<span style="font-size: 8pt;">##CompanyWebsite##</span><br /><span style="font-size: 8pt;">##CompanyPhoneNumber##</span><br /><span style="font-size: 8pt;">Prepared By: ##PreparedBy##</span><br /><span style="font-size: 8pt;">Email: ##ContactEmail##</span><br /><span style="font-size: 8pt;">##Date##</span>
</td>
</tr>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><span style="font-size: 8pt;">Client Name: ##ClientName##</span></td>
</tr>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><span style="font-size: 8pt;">Project Name: ##ProjectName##</span></td>
</tr>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><span style="font-size: 8pt;">Drawing Number: ##DrawingNumber##</span></td>
</tr>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><span style="font-size: 8pt;">Revision Number: ##RevisionNumber##</span></td>
</tr>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><span style="font-size: 8pt;">Scale: NTS</span></td>
</tr>
</tbody>
</table>

User TheFencepedia 2024-07-18 06:25:06

Oh geez. It converted the html code into the screen output.

I've contacted JCE too, to find out if they can tell me how to fix this.

I just want the single line that I can see on the screen view to be the same on the PDF.

Moonsoft support 2024-07-18 10:10:03

Hi,
yes, if you paste html inside the page, it will show up. You can zip the file and attach it to the ticket in case you need to forward any other content in the future. Anyway, per the code table we can see, it seems your new editor has added again the border to the table, in addition to the border cells, so the way to fix would be the same commented above:

You have

table border="1"
and

td colspan="2" style="border: 1px solid #000000; padding: 5px;"

You need to remove that table border, or remove the cellspacing (you can do it with your editor, at table properties) .

Hope this helps, regards

Moonsoft Team

User TheFencepedia 2024-07-18 18:18:44

Hi,

Yeah, I've already done that in the editor. Doesn't change anything!

I checked the code too, and cellspacing is set to 0, as per the attached image.

Can you please advise how I fix this? I just need the PDF output have a SINGLE line around it, and it seems like that shouldn't be so hard!

Moonsoft support 2024-07-19 09:53:11

Hi,
seems you have duplicated this ticket content into another one. Please try our suggestion from the other ticket (removing the table border), or share an acces there, so we will follow support from there and won't duplicate threads.
Thanks, best regards
Moonsoft Team

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
List Manager

Build different lists for your site

Buy now!