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




Reply With Quote
