Skip to content

Commit 2c0fe14

Browse files
committed
Merge pull request #2 from DJGosnell/master
Similar column name selection error
2 parents d3328b9 + eb7e96c commit 2c0fe14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BulkPDFCore/PDFFiller.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void CreateFiles(PDF pdf, bool finalize, IDataSource dataSource, D
2424
{
2525
if (pdfFields[field].UseValueFromDataSource)
2626
{
27-
var value = dataSource.GetField(dataSource.Columns.FindIndex(x => x.StartsWith(pdfFields[field].DataSourceValue)) + 1);
27+
var value = dataSource.GetField(dataSource.Columns.FindIndex(x => x == pdfFields[field].DataSourceValue) + 1);
2828
pdf.SetFieldValue(field, value, pdfFields[field].MakeReadOnly);
2929
}
3030
}

0 commit comments

Comments
 (0)