SQL-Ledger Homepage

SQL-Ledger User Forum

Forum index page

Log in | Register

Back to index page
Thread view  Board view
Dave(R)

20.09.2016, 15:29
 

pdf invoices compiling but not able to preview (General)

Hi,

I recently discovered my invoices were compiling in the users directory, but when trying to preview from the interface, I just get a read out of all my errors. I scrolled to the bottom of the errors, and realized it was still compiling. Is there something I need to change to get the preview to work ? I will see if emailing still emails a completed copy.

Dave

Dave(R)

21.09.2016, 13:47

@ Dave
 

pdf invoices compiling but not able to preview

Hi,

I recently discovered my invoices were compiling in the users directory,
but when trying to preview from the interface, I just get a read out of all
my errors. I scrolled to the bottom of the errors, and realized it was
still compiling. Is there something I need to change to get the preview to
work ? I will see if emailing still emails a completed copy.

Dave

It seems when I'm populating counters via \stepcounter in the tex file combined with <%foreach%>(sql-ledger loops) is when the problem is occuring. Did something change from v3.0.8 and v3.2.0 in Form.pm where populating these placeholders is handled differently?

If I replace Form.pm while trying to preview with the v3.0.8 one, it works. I mean I need to clean up my code big time, but it was a nice system I had going.

Might be time to clean up my code and learn more Tex programming lol.

Dave(R)

21.09.2016, 15:01

@ Dave
 

pdf invoices compiling but not able to preview

I figured out the block of code that was causing it.

At line: 789
if (-f "$self->{errfile}") {
my @err;
open(FH, "$self->{errfile}");
@err = <FH>;
close(FH);
for (@err) {
$self->error("@err") if /LaTeX Error:/;
}
}

Back to index page
Thread view  Board view
963 Postings in 317 Threads, 321 registered users, 131 users online (0 registered, 131 guests)
SQL-Ledger User Forum | Admin contact
RSS-Feed
powered by my little forum