Skip to content

Commit

Permalink
Merge pull request #2 from DJGosnell/master
Browse files Browse the repository at this point in the history
Similar column name selection error
  • Loading branch information
Tadelsucht committed Dec 18, 2015
2 parents d3328b9 + eb7e96c commit 2c0fe14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BulkPDFCore/PDFFiller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static class PDFFiller
{
if (pdfFields[field].UseValueFromDataSource)
{
var value = dataSource.GetField(dataSource.Columns.FindIndex(x => x.StartsWith(pdfFields[field].DataSourceValue)) + 1);
var value = dataSource.GetField(dataSource.Columns.FindIndex(x => x == pdfFields[field].DataSourceValue) + 1);
pdf.SetFieldValue(field, value, pdfFields[field].MakeReadOnly);
}
}
Expand Down

0 comments on commit 2c0fe14

Please sign in to comment.