merge data from multiple tables of dataset using NRichTextViewWithCommandBars


Author
Message
Mike Willis
Mike Willis
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 18, Visits: 109
I am using Nevron Open Vision for .NET Enterprise 2017.1

I have a requirement to merge data from multiple tables in a dataset (c# DataSet class).
Additionally to merge all rows from a table in the dataset.
Does RichTextView support this type of merging/

If not can i write a custom mailmerge class derived from NMailMerge and NDataSource?
Or
Can i override or add custom types to the Insert Field dialog , and process these fields myself?

Thanks in advance
Mike Willis



Reply
Mike Willis
Mike Willis
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 18, Visits: 109
Hey,
Attempting to do as you suggest "by creating a class that inherits NMailMergeDataSource, overriding its GetDataTablecreate a class that inherits from NMailMergeDataSource."
However i get these compiler errors
ErrorCS0115'DocumentMergeDataSource.Xwr()': no suitable method found to override
ErrorCS0115'DocumentMergeDataSource.Wwr()': no suitable method found to override
ErrorCS0534'DocumentMergeDataSource' does not implement inherited abstract member 'NMailMergeDataSource.Xwr()'
ErrorCS0534'DocumentMergeDataSource' does not implement inherited abstract member 'NMailMergeDataSource.Wwr()'

this is the code
"public class MyMailMergeDataSource : NMailMergeDataSource
  {
   public override NDataTable GetDataTable()
   {
    Business.DocumentDataSet ds = new Business.DocumentDataSet();
    return ds.DocumentToNDataTable();

   }

   internal override string Wwr()
   {
    throw new NotImplementedException();
   }

   internal override string Xwr()
   {
    throw new NotImplementedException();
   }
  }"

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search