The stream constructor has 2 optional parameters:
public DocumentSource(Func<Stream> openStream, string fileName, long fileSize, DateTime fileDateModified, bool leaveStreamOpen = false, bool keepSourceCached = true)
The byte array constructor has 1 optional parameter:
public DocumentSource(Func<byte[]> getBytes, string fileName, long fileSize, DateTime fileDateModified, bool keepSourceCached = true)
One of your parameters in the middle (string fileName, long fileSize, DateTime fileDateModified) is probably not of correct type. And Intellisense is confused and it’s not showing the actual error for the middle parameter.
I guess it’s the second parameter (string fileName)
ds.Tables….
you need to cast it to string
(string)ds.Tables….