// Send to Excel Implementation


        public async Task Send2Excel()
        {
            IEnumerable <OversShort> lst = null;

            using (var ctx = new OversShortRepository())
            {
                lst = await ctx.GetOversShortsByExpressionNav(vloader.FilterExpression, vloader.NavigationExpression).ConfigureAwait(continueOnCapturedContext: false);
            }
            if (lst == null || !lst.Any())
            {
                MessageBox.Show("No Data to Send to Excel");
                return;
            }
            var s = new ExportToExcel <OversShortExcelLine, List <OversShortExcelLine> >
            {
                dataToPrint = lst.Select(x => new OversShortExcelLine
                {
                    InvoiceNo = x.InvoiceNo,


                    InvoiceDate = x.InvoiceDate
                }).ToList()
            };

            using (var sta = new StaTaskScheduler(numberOfThreads: 1))
            {
                await Task.Factory.StartNew(s.GenerateReport, CancellationToken.None, TaskCreationOptions.None, sta).ConfigureAwait(false);
            }
        }
        public async Task SelectAll()
        {
            IEnumerable <OversShort> lst = null;

            using (var ctx = new OversShortRepository())
            {
                lst = await ctx.GetOversShortsByExpressionNav(vloader.FilterExpression, vloader.NavigationExpression).ConfigureAwait(continueOnCapturedContext: false);
            }
            SelectedOversShorts = new ObservableCollection <OversShort>(lst);
        }