Adding tabular data to PDF file by adding table with option and styles using Python ReportLab

Поделиться
HTML-код
  • Опубликовано: 11 ноя 2024

Комментарии • 16

  • @martinjeaks
    @martinjeaks Год назад

    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.

    • @plus2net1
      @plus2net1  Год назад

      You can get all type of combinations here.
      www.plus2net.com/python/pdf-report.php

  • @badriinfo259
    @badriinfo259 Год назад

    that was so helpfull i need one more thing can u help me to print the file created without saviing it

  • @thomasaadhira
    @thomasaadhira Год назад

    Sir, can you explain ow to wrap texts inside cells

  • @ali-mw8nf
    @ali-mw8nf 2 года назад

    Excellent,,,,,,,,,,,,,,,,,

  • @sam_100ali_10
    @sam_100ali_10 3 месяца назад

    Why are letters replaced with black squares after saving in Arabic?

    • @plus2net1
      @plus2net1  3 месяца назад +1

      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 .

    • @sam_100ali_10
      @sam_100ali_10 3 месяца назад +1

      @@plus2net1 thanks

    • @plus2net1
      @plus2net1  3 месяца назад

      ruclips.net/video/Ru8FbN4gZAo/видео.html
      Download the source code here .
      www.plus2net.com/python/pdf-fonts.php

  • @maneeshreddy7088
    @maneeshreddy7088 2 года назад

    Can we generate SQL query automatically based on our requirements?

    • @plus2net1
      @plus2net1  2 года назад

      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.

  • @srinivascena485
    @srinivascena485 2 года назад

    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

    • @plus2net1
      @plus2net1  2 года назад

      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
      @guilhermegoncalvesnunes15 Год назад

      @@plus2net1 and how about to break lines inside the cells?

    • @plus2net1
      @plus2net1  Год назад +1

      @@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.