Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rectangle issues
01-17-2015, 03:33 AM
Post: #1
rectangle issues
I've got some issues with my rectangles on my purchase order, I want to make the border of my rectangle bold, and for some reason I'm missing the rectangle that goes around my data, do any of you smart weberp developers know why? this is my third day working with it.
Find all posts by this user
Quote this message in a reply
01-18-2015, 07:36 AM (This post was last modified: 01-28-2015 11:54 AM by TurboPT.)
Post: #2
RE: rectangle issues
We might need more detail:

Which rectangle exactly?
Is the missing rectangle the one that you're adding, or did some other rectangle go missing after adding yours?
Which file[s] are you modifying, and approximately what line number[s] area?

etc...
Find all posts by this user
Quote this message in a reply
01-29-2015, 01:01 AM
Post: #3
RE: rectangle issues
Look up the Rect() function, also the SetLineWidth() function in the official TCPDF documentation (tcpdf.org). The "style" parameter is important - you probably have to set it to "D" or "DF". n.b. if you have not come across it before, the documentation is a little arcane, but the "examples" tab is brilliant - each section has a PDF link, which shows all the resulting graphics, and a corresponding PHP link, which shows the code behind each graphic. Page 12 (graphic methods) shows a whole bunch of rectangles and other shapes.

Note also that the TCPDF class has been sub-classed in WebERP. With respect to the people who did this, for perfectly good reasons, like backwards-compatibility, if you are making any significant changes to reports, you will probably find the original TCPDF methods an awful lot more straightforward.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)