Sir, Your video was greatly helped my programming. One more question for now. How can i add a string (number to word) on the end of the table, means out side the table, just below the table.Thank you sir.
Yes, take the user inputs and then prepare the query. The login system also works in that way. Userid and password as entered by user is used to construct a query and then applied to table to check if matching record is available or not.
You can manage column width like this. c_width=[0.4*inch,1.5*inch,1*inch,1*inch,1*inch] t=Table(my_data,rowHeights=20,repeatRows=1,colWidths=c_width) If you want common width for all columns c_width=[1*inch] once you know you have n number of columns then each column width you can manage by using available with / n , this value you can use to set the common width. You can also manage the margins.
@@guilhermegoncalvesnunes15 In place of using styles["Normal"] use styles["BodyText"] , this will allow text to align based on width. Please try like this and hope this will work.
Sir, Your video was greatly helped my programming. One more question for now. How can i add a string (number to word) on the end of the table, means out side the table, just below the table.Thank you sir.
You can get all type of combinations here.
www.plus2net.com/python/pdf-report.php
that was so helpfull i need one more thing can u help me to print the file created without saviing it
Sir, can you explain ow to wrap texts inside cells
Excellent,,,,,,,,,,,,,,,,,
Many many thanks
Why are letters replaced with black squares after saving in Arabic?
It is the font support that is missing, try to place the Arabic font in font directory and register the same. I will post a detail video on this .
@@plus2net1 thanks
ruclips.net/video/Ru8FbN4gZAo/видео.html
Download the source code here .
www.plus2net.com/python/pdf-fonts.php
Can we generate SQL query automatically based on our requirements?
Yes, take the user inputs and then prepare the query. The login system also works in that way. Userid and password as entered by user is used to construct a query and then applied to table to check if matching record is available or not.
Sir what to do when table width exceeds as number of columns were increased ,how to adjust that table with n number of columns in pdf file
You can manage column width like this.
c_width=[0.4*inch,1.5*inch,1*inch,1*inch,1*inch]
t=Table(my_data,rowHeights=20,repeatRows=1,colWidths=c_width)
If you want common width for all columns
c_width=[1*inch]
once you know you have n number of columns then each column width you can manage by using available with / n , this value you can use to set the common width.
You can also manage the margins.
@@plus2net1 and how about to break lines inside the cells?
@@guilhermegoncalvesnunes15 In place of using styles["Normal"] use styles["BodyText"] , this will allow text to align based on width. Please try like this and hope this will work.