DPI Settings - Variable for Screen/Print?


https://www.nevron.com/Forum/Topic5510.aspx
Print Topic | Close Window

By Kris Dages - 13 Years Ago
Is it possible (or can it be ) to make the Chart Resolution (DPI) setting defined by a formula? I'd like to have a higher resolution chart when a report is rendered to PDF vs when it is on screen.
By Nevron Support - 13 Years Ago

Hi Kris,

This is currently not possible, however we will add this support in custom code. Currently you can only check the current resolution:

using System;
using System.Drawing;
using Nevron.GraphicsCore;
using Nevron.Chart;
using Nevron.ReportingServices;

namespace MyNamespace
{
 /// <summary>
 /// Sample class
 /// </summary>
 public class MyClass
 {
  /// <summary>
  /// Main entry point
  /// </summary>
  /// <param name="context"></param>
  public static void RSMain(NRSChartCodeContext context)
  {

   // context.RenderParameters.Resolution contains the current resolution
  }
 }
}

however you cannot modify it. We'll try to implement this in the next SP for the component.