Click here to Skip to main content
16,020,666 members
Home / Discussions / C#
   

C#

 
Questionalias names for Column in Linq Pin
simpledeveloper25-Jan-21 8:28
simpledeveloper25-Jan-21 8:28 
AnswerRe: alias names for Column in Linq Pin
Gerry Schmitz25-Jan-21 10:18
mveGerry Schmitz25-Jan-21 10:18 
AnswerRe: alias names for Column in Linq Pin
Richard Deeming25-Jan-21 21:38
mveRichard Deeming25-Jan-21 21:38 
Questionhow to print POS bills with a thermal printer Pin
Meax24-Jan-21 8:53
Meax24-Jan-21 8:53 
AnswerRe: how to print POS bills with a thermal printer Pin
Daniel Pfeffer24-Jan-21 9:23
professionalDaniel Pfeffer24-Jan-21 9:23 
GeneralRe: how to print POS bills with a thermal printer Pin
OriginalGriff24-Jan-21 10:25
mveOriginalGriff24-Jan-21 10:25 
AnswerRe: how to print POS bills with a thermal printer Pin
OriginalGriff24-Jan-21 10:26
mveOriginalGriff24-Jan-21 10:26 
QuestionRuntime error in PivotGridControl data binding [Solved] Pin
Alex Dunlop21-Jan-21 8:48
Alex Dunlop21-Jan-21 8:48 
Hi,
I'm trying to use Devexpress library in my own project. I use PivotGridControl to load an excel data into PivotTable. For a test, I used the following code:
C#
public Form1()
       {
           ExcelDataSource myExcelSource = new ExcelDataSource();
           myExcelSource.FileName = @"C:\Users\Fardin\Desktop\Book1.xlsx";
           ExcelWorksheetSettings worksheetSettings = new ExcelWorksheetSettings("Sheet1", "A1:B20");
           myExcelSource.SourceOptions = new ExcelSourceOptions(worksheetSettings);
           myExcelSource.SourceOptions.SkipEmptyRows = false;
           myExcelSource.SourceOptions.UseFirstRowAsHeader = true;
           myExcelSource.Fill();
           pivotGridControl1.DataSource = myExcelSource;
       }

But there is following error in
C#
System.NullReferenceException: 'Object reference not set to an instance of an object.'

I upload the whole project package:
https://www.dropbox.com/s/vmokcgu21jqohpo/DXApplication1.rar?dl=0
And for Excel file:
Dropbox - Book1.xlsx - Simplify your life[^]
Please guide me.

modified 22-Jan-21 5:08am.

AnswerRe: Runtime error in PivotGridControl data binding Pin
Gerry Schmitz21-Jan-21 9:02
mveGerry Schmitz21-Jan-21 9:02 
AnswerRe: Runtime error in PivotGridControl data binding Pin
Richard Deeming21-Jan-21 22:05
mveRichard Deeming21-Jan-21 22:05 
AnswerRe: Runtime error in PivotGridControl data binding Pin
OriginalGriff21-Jan-21 22:22
mveOriginalGriff21-Jan-21 22:22 
GeneralRe: Runtime error in PivotGridControl data binding Pin
Alex Dunlop21-Jan-21 22:44
Alex Dunlop21-Jan-21 22:44 
GeneralRe: Runtime error in PivotGridControl data binding Pin
Alex Dunlop21-Jan-21 23:07
Alex Dunlop21-Jan-21 23:07 
GeneralRe: Runtime error in PivotGridControl data binding Pin
OriginalGriff21-Jan-21 23:30
mveOriginalGriff21-Jan-21 23:30 
Question[Visual Studio 2019] Ask About Tutorial for C# Windows Application Pin
chipp_zanuff21-Jan-21 0:34
chipp_zanuff21-Jan-21 0:34 
AnswerRe: [Visual Studio 2019] Ask About Tutorial for C# Windows Application Pin
OriginalGriff21-Jan-21 0:59
mveOriginalGriff21-Jan-21 0:59 
GeneralRe: [Visual Studio 2019] Ask About Tutorial for C# Windows Application Pin
chipp_zanuff21-Jan-21 5:56
chipp_zanuff21-Jan-21 5:56 
AnswerRe: [Visual Studio 2019] Ask About Tutorial for C# Windows Application Pin
Richard MacCutchan21-Jan-21 1:37
mveRichard MacCutchan21-Jan-21 1:37 
GeneralRe: [Visual Studio 2019] Ask About Tutorial for C# Windows Application Pin
chipp_zanuff21-Jan-21 5:40
chipp_zanuff21-Jan-21 5:40 
GeneralRe: [Visual Studio 2019] Ask About Tutorial for C# Windows Application Pin
Richard MacCutchan21-Jan-21 5:53
mveRichard MacCutchan21-Jan-21 5:53 
GeneralRe: [Visual Studio 2019] Ask About Tutorial for C# Windows Application Pin
chipp_zanuff21-Jan-21 6:03
chipp_zanuff21-Jan-21 6:03 
GeneralRe: [Visual Studio 2019] Ask About Tutorial for C# Windows Application Pin
Richard MacCutchan21-Jan-21 6:36
mveRichard MacCutchan21-Jan-21 6:36 
GeneralRe: [Visual Studio 2019] Ask About Tutorial for C# Windows Application Pin
chipp_zanuff22-Jan-21 4:41
chipp_zanuff22-Jan-21 4:41 
GeneralRe: [Visual Studio 2019] Ask About Tutorial for C# Windows Application Pin
Richard MacCutchan22-Jan-21 5:42
mveRichard MacCutchan22-Jan-21 5:42 
AnswerRe: [Visual Studio 2019] Ask About Tutorial for C# Windows Application Pin
Gerry Schmitz21-Jan-21 3:44
mveGerry Schmitz21-Jan-21 3:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.