Closed jenergm closed 3 months ago
I can't duplicate the issue with the snippets above. The Size class is missing so it may be related to that. Can you attach an example that I can build that reproduces the error?
Hello, Size class is:
/// <summary>
/// Size used by report page.
/// </summary>
public class Size
{
/// <summary>
/// The report page width in centimeters. Example: "21cm".
/// </summary>
public string Width { get; set; }
/// <summary>
/// The report page height in centimeters. Example: "29.7cm".
/// </summary>
public string Height { get; set; }
}
An example of PageSizeExtension is:
/// <summary>
/// Configuration of the report's page.
/// </summary>
public class ReportPageDefinition
{
/// <summary>
/// The report page size.
/// </summary>
public PageSize PageSize { get; set; }
/// <summary>
/// The report page orientation. Portrait or Landscape.
/// </summary>
public PageOrientation PageOrientation { get; set; }
/// <summary>
/// The report page width according page orientation and size.
/// </summary>
/// <returns>The report page width in centimeters. Example: "21cm".</returns>
public string PageWidth()
{
if (PageOrientation == Reporting.PageOrientation.Portrait)
return this.PageSize.Size().Width;
else
return this.PageSize.Size().Height;
}
/// <summary>
/// The report page height according page orientation and size.
/// </summary>
/// <returns>The report page height in centimeters. Example: "29.7cm".</returns>
public string PageHeight()
{
if (PageOrientation == Reporting.PageOrientation.Portrait)
return this.PageSize.Size().Height;
else
return this.PageSize.Size().Width;
}
}
It still works so it may be something unique to your project. As requested above, can you attach something I can build to try and duplicate the error you are seeing?
The fix for #1071 should also correct this issue.
Hi there,
When matching Extensions Methods to Enum throws an Error BE0065: An error occurred while attempting to transform the reflection data to a topic. The error message was: System.NullReferenceException
I've edited API Filter in Project Properties -> Visibility -> Edit API Filter to disable PageSizeExtension class and bypass the error. But I know it's not the solution even a workarround. But I needed build the project.
That is about: Sandcastle Help File Builder and Tools Version: 2024.2.18.0