Results 1 to 1 of 1

Thread: problem add tex from excel t in image file

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2021
    Posts
    91

    problem add tex from excel t in image file

    Dear All Master,
    I'm using the exceldatareader library version 2, the problem is that the text in the image file is only the last value. I want to match image file path in existing row in excel.

    I also marked the color in the code below.
    thanks
    roy88
    Code:
    Dim z As Integer = 0
                        For Each dr As DataRow In dsTable.Tables(0).Rows
                            If z > 0 Then
                                Dim pathImage As String = dr(0).ToString().Trim()
                                Dim type As String = dr(1).ToString().Trim()
                            End If
                            w.InitLibrary("demo", "demo")
                            w.AddInputFile(dr(0).ToString().Trim())
    
                            preset.Text = dr(1).ToString().Trim()
    
                            preset.Transparency = 50
                            w.AddWatermark(preset)
                            w.OutputOptions.OutputDirectory = "c:\emp\output"
                            w.Execute()
                        Next
    
                    End If
    Attached Images Attached Images    

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width