We have a report designer in our .NET web app, and if the report has a watermark, I got this when trying to run it:
Línea 352: rea = New System.Xml.XmlTextReader(s)
Línea 353: r.DataSource = dt
Línea 354: r.LoadLayout(rea)
Línea 355: AgregaParametros(r)
Línea 356: r.Run()
Line 354 fires the error
I printed dt,s,r and rea values in the immediate command window, with or without the watermark (debugging with a breakpoint in line 354), they seem to be all the same, so no clue about what's hapenning here:
NO WATERMARK *******************************************************
?rea
"None"
System.Xml.XmlTextReader: "None"
AttributeCount: 0
BaseURI: ""
CanReadBinaryContent: True
CanReadValueChunk: False
CanResolveEntity: True
Depth: 0
EOF: False
HasAttributes: False
HasValue: False
IsDefault: False
IsEmptyElement: False
Item: In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.
LocalName: ""
Name: ""
NamespaceURI: ""
NameTable: {System.Xml.NameTable}
NodeType: None {0}
Prefix: ""
QuoteChar: """"c
ReadState: Initial {0}
SchemaInfo: Nothing
Settings: Nothing
Value: ""
ValueType: {Name = "String" FullName = "System.String"}
XmlLang: ""
XmlSpace: None {0}
WATERMARK *******************************************************
?rea
"None"
System.Xml.XmlTextReader: "None"
AttributeCount: 0
BaseURI: ""
CanReadBinaryContent: True
CanReadValueChunk: False
CanResolveEntity: True
Depth: 0
EOF: False
HasAttributes: False
HasValue: False
IsDefault: False
IsEmptyElement: False
Item: In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.
LocalName: ""
Name: ""
NamespaceURI: ""
NameTable: {System.Xml.NameTable}
NodeType: None {0}
Prefix: ""
QuoteChar: """"c
ReadState: Initial {0}
SchemaInfo: Nothing
Settings: Nothing
Value: ""
ValueType: {Name = "String" FullName = "System.String"}
XmlLang: ""
XmlSpace: None {0}
NO WATERMARK ********************************************************
?r
{DataDynamics.ActiveReports.ActiveReport}
CalculatedFields: {DataDynamics.ActiveReports.FieldCollection}
Components: {System.ComponentModel.Container}
Culture: Nothing
CurrentMasterReportQueue: Nothing
CurrentPage: Nothing
DataMember: Nothing
DataSource: {System.Data.DataTable}
Document: {DataDynamics.ActiveReports.Document.Document}
EnableScriptDebugging: False
ExpressionErrorMessage: Nothing
Fields: {DataDynamics.ActiveReports.FieldCollection}
Initializing: False
IsDirty: True
IsSerializing: False
LayoutAction: 7
MasterReport: False
MaxPages: 0
Name: Nothing
PageNumber: 1
PageSettings: {DataDynamics.ActiveReports.PageSettings}
Parameters: {DataDynamics.ActiveReports.ParameterCollection}
ParentReport: Nothing
PrintWidth: 6.5
Script: ""
ScriptLanguage: "C#"
ScriptReferences: {#mb.#sNn}
Sections: {DataDynamics.ActiveReports.SectionCollection}
ShowParameterUI: True
State: Idle {0}
StyleSheet: {DataDynamics.ActiveReports.StyleSheet}
UserData: Nothing
Version: "6.0.2250.0"
Watermark: Nothing
WatermarkAlignment: Center {2}
WatermarkPrintOnPages: Nothing
WatermarkSizeMode: Clip {0}
WATERMARK ***************************************************************
?r
{DataDynamics.ActiveReports.ActiveReport}
CalculatedFields: {DataDynamics.ActiveReports.FieldCollection}
Components: {System.ComponentModel.Container}
Culture: Nothing
CurrentMasterReportQueue: Nothing
CurrentPage: Nothing
DataMember: Nothing
DataSource: {System.Data.DataTable}
Document: {DataDynamics.ActiveReports.Document.Document}
EnableScriptDebugging: False
ExpressionErrorMessage: Nothing
Fields: {DataDynamics.ActiveReports.FieldCollection}
Initializing: False
IsDirty: True
IsSerializing: False
LayoutAction: 7
MasterReport: False
MaxPages: 0
Name: Nothing
PageNumber: 1
PageSettings: {DataDynamics.ActiveReports.PageSettings}
Parameters: {DataDynamics.ActiveReports.ParameterCollection}
ParentReport: Nothing
PrintWidth: 6.5
Script: ""
ScriptLanguage: "C#"
ScriptReferences: {#mb.#sNn}
Sections: {DataDynamics.ActiveReports.SectionCollection}
ShowParameterUI: True
State: Idle {0}
StyleSheet: {DataDynamics.ActiveReports.StyleSheet}
UserData: Nothing
Version: "6.0.2250.0"
Watermark: Nothing
WatermarkAlignment: Center {2}
WatermarkPrintOnPages: Nothing
WatermarkSizeMode: Clip {0}
N0 WATERMARK ************************************************************
?dt
{System.Data.DataTable}
CaseSensitive: False
ChildRelations: {System.Data.DataRelationCollection.DataTableRelationCollection}
Columns: {System.Data.DataColumnCollection}
Constraints: {System.Data.ConstraintCollection}
Container: Nothing
DataSet: {System.Data.DataSet}
DefaultView: {System.Data.DataView}
DesignMode: False
DisplayExpression: ""
ExtendedProperties: Count = 0
HasErrors: False
IsInitialized: True
Locale: {System.Globalization.CultureInfo}
MinimumCapacity: 50
Namespace: ""
ParentRelations: {System.Data.DataRelationCollection.DataTableRelationCollection}
Prefix: ""
PrimaryKey: {Length=0}
RemotingFormat: Xml {0}
Rows: {System.Data.DataRowCollection}
Site: Nothing
TableName: "Table"
WATERMARK ****************************************************
?dt
{System.Data.DataTable}
CaseSensitive: False
ChildRelations: {System.Data.DataRelationCollection.DataTableRelationCollection}
Columns: {System.Data.DataColumnCollection}
Constraints: {System.Data.ConstraintCollection}
Container: Nothing
DataSet: {System.Data.DataSet}
DefaultView: {System.Data.DataView}
DesignMode: False
DisplayExpression: ""
ExtendedProperties: Count = 0
HasErrors: False
IsInitialized: True
Locale: {System.Globalization.CultureInfo}
MinimumCapacity: 50
Namespace: ""
ParentRelations: {System.Data.DataRelationCollection.DataTableRelationCollection}
Prefix: ""
PrimaryKey: {Length=0}
RemotingFormat: Xml {0}
Rows: {System.Data.DataRowCollection}
Site: Nothing
TableName: "Table"
NO WATERMARK ************************************************************
?s
{System.IO.MemoryStream}
System.IO.MemoryStream: {System.IO.MemoryStream}
CanRead: True
CanSeek: True
CanTimeout: False
CanWrite: True
Length: 1551
Null: {System.IO.Stream.NullStream}
Position: 1551
ReadTimeout: {"Los tiempos de espera no se admiten en esta secuencia."}
WriteTimeout: {"Los tiempos de espera no se admiten en esta secuencia."}
NO WATERMARK ************************************************************
?s
{System.IO.MemoryStream}
System.IO.MemoryStream: {System.IO.MemoryStream}
CanRead: True
CanSeek: True
CanTimeout: False
CanWrite: True
Length: 310846
Null: {System.IO.Stream.NullStream}
Position: 8192
ReadTimeout: {"Los tiempos de espera no se admiten en esta secuencia."}
WriteTimeout: {"Los tiempos de espera no se admiten en esta secuencia."}
Línea 352: rea = New System.Xml.XmlTextReader(s)
Línea 353: r.DataSource = dt
Línea 354: r.LoadLayout(rea)
Línea 355: AgregaParametros(r)
Línea 356: r.Run()
Line 354 fires the error
I printed dt,s,r and rea values in the immediate command window, with or without the watermark (debugging with a breakpoint in line 354), they seem to be all the same, so no clue about what's hapenning here:
NO WATERMARK *******************************************************
?rea
"None"
System.Xml.XmlTextReader: "None"
AttributeCount: 0
BaseURI: ""
CanReadBinaryContent: True
CanReadValueChunk: False
CanResolveEntity: True
Depth: 0
EOF: False
HasAttributes: False
HasValue: False
IsDefault: False
IsEmptyElement: False
Item: In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.
LocalName: ""
Name: ""
NamespaceURI: ""
NameTable: {System.Xml.NameTable}
NodeType: None {0}
Prefix: ""
QuoteChar: """"c
ReadState: Initial {0}
SchemaInfo: Nothing
Settings: Nothing
Value: ""
ValueType: {Name = "String" FullName = "System.String"}
XmlLang: ""
XmlSpace: None {0}
WATERMARK *******************************************************
?rea
"None"
System.Xml.XmlTextReader: "None"
AttributeCount: 0
BaseURI: ""
CanReadBinaryContent: True
CanReadValueChunk: False
CanResolveEntity: True
Depth: 0
EOF: False
HasAttributes: False
HasValue: False
IsDefault: False
IsEmptyElement: False
Item: In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.
LocalName: ""
Name: ""
NamespaceURI: ""
NameTable: {System.Xml.NameTable}
NodeType: None {0}
Prefix: ""
QuoteChar: """"c
ReadState: Initial {0}
SchemaInfo: Nothing
Settings: Nothing
Value: ""
ValueType: {Name = "String" FullName = "System.String"}
XmlLang: ""
XmlSpace: None {0}
NO WATERMARK ********************************************************
?r
{DataDynamics.ActiveReports.ActiveReport}
CalculatedFields: {DataDynamics.ActiveReports.FieldCollection}
Components: {System.ComponentModel.Container}
Culture: Nothing
CurrentMasterReportQueue: Nothing
CurrentPage: Nothing
DataMember: Nothing
DataSource: {System.Data.DataTable}
Document: {DataDynamics.ActiveReports.Document.Document}
EnableScriptDebugging: False
ExpressionErrorMessage: Nothing
Fields: {DataDynamics.ActiveReports.FieldCollection}
Initializing: False
IsDirty: True
IsSerializing: False
LayoutAction: 7
MasterReport: False
MaxPages: 0
Name: Nothing
PageNumber: 1
PageSettings: {DataDynamics.ActiveReports.PageSettings}
Parameters: {DataDynamics.ActiveReports.ParameterCollection}
ParentReport: Nothing
PrintWidth: 6.5
Script: ""
ScriptLanguage: "C#"
ScriptReferences: {#mb.#sNn}
Sections: {DataDynamics.ActiveReports.SectionCollection}
ShowParameterUI: True
State: Idle {0}
StyleSheet: {DataDynamics.ActiveReports.StyleSheet}
UserData: Nothing
Version: "6.0.2250.0"
Watermark: Nothing
WatermarkAlignment: Center {2}
WatermarkPrintOnPages: Nothing
WatermarkSizeMode: Clip {0}
WATERMARK ***************************************************************
?r
{DataDynamics.ActiveReports.ActiveReport}
CalculatedFields: {DataDynamics.ActiveReports.FieldCollection}
Components: {System.ComponentModel.Container}
Culture: Nothing
CurrentMasterReportQueue: Nothing
CurrentPage: Nothing
DataMember: Nothing
DataSource: {System.Data.DataTable}
Document: {DataDynamics.ActiveReports.Document.Document}
EnableScriptDebugging: False
ExpressionErrorMessage: Nothing
Fields: {DataDynamics.ActiveReports.FieldCollection}
Initializing: False
IsDirty: True
IsSerializing: False
LayoutAction: 7
MasterReport: False
MaxPages: 0
Name: Nothing
PageNumber: 1
PageSettings: {DataDynamics.ActiveReports.PageSettings}
Parameters: {DataDynamics.ActiveReports.ParameterCollection}
ParentReport: Nothing
PrintWidth: 6.5
Script: ""
ScriptLanguage: "C#"
ScriptReferences: {#mb.#sNn}
Sections: {DataDynamics.ActiveReports.SectionCollection}
ShowParameterUI: True
State: Idle {0}
StyleSheet: {DataDynamics.ActiveReports.StyleSheet}
UserData: Nothing
Version: "6.0.2250.0"
Watermark: Nothing
WatermarkAlignment: Center {2}
WatermarkPrintOnPages: Nothing
WatermarkSizeMode: Clip {0}
N0 WATERMARK ************************************************************
?dt
{System.Data.DataTable}
CaseSensitive: False
ChildRelations: {System.Data.DataRelationCollection.DataTableRelationCollection}
Columns: {System.Data.DataColumnCollection}
Constraints: {System.Data.ConstraintCollection}
Container: Nothing
DataSet: {System.Data.DataSet}
DefaultView: {System.Data.DataView}
DesignMode: False
DisplayExpression: ""
ExtendedProperties: Count = 0
HasErrors: False
IsInitialized: True
Locale: {System.Globalization.CultureInfo}
MinimumCapacity: 50
Namespace: ""
ParentRelations: {System.Data.DataRelationCollection.DataTableRelationCollection}
Prefix: ""
PrimaryKey: {Length=0}
RemotingFormat: Xml {0}
Rows: {System.Data.DataRowCollection}
Site: Nothing
TableName: "Table"
WATERMARK ****************************************************
?dt
{System.Data.DataTable}
CaseSensitive: False
ChildRelations: {System.Data.DataRelationCollection.DataTableRelationCollection}
Columns: {System.Data.DataColumnCollection}
Constraints: {System.Data.ConstraintCollection}
Container: Nothing
DataSet: {System.Data.DataSet}
DefaultView: {System.Data.DataView}
DesignMode: False
DisplayExpression: ""
ExtendedProperties: Count = 0
HasErrors: False
IsInitialized: True
Locale: {System.Globalization.CultureInfo}
MinimumCapacity: 50
Namespace: ""
ParentRelations: {System.Data.DataRelationCollection.DataTableRelationCollection}
Prefix: ""
PrimaryKey: {Length=0}
RemotingFormat: Xml {0}
Rows: {System.Data.DataRowCollection}
Site: Nothing
TableName: "Table"
NO WATERMARK ************************************************************
?s
{System.IO.MemoryStream}
System.IO.MemoryStream: {System.IO.MemoryStream}
CanRead: True
CanSeek: True
CanTimeout: False
CanWrite: True
Length: 1551
Null: {System.IO.Stream.NullStream}
Position: 1551
ReadTimeout: {"Los tiempos de espera no se admiten en esta secuencia."}
WriteTimeout: {"Los tiempos de espera no se admiten en esta secuencia."}
NO WATERMARK ************************************************************
?s
{System.IO.MemoryStream}
System.IO.MemoryStream: {System.IO.MemoryStream}
CanRead: True
CanSeek: True
CanTimeout: False
CanWrite: True
Length: 310846
Null: {System.IO.Stream.NullStream}
Position: 8192
ReadTimeout: {"Los tiempos de espera no se admiten en esta secuencia."}
WriteTimeout: {"Los tiempos de espera no se admiten en esta secuencia."}