Hello,
I am trying to get a PDF creating dll to work with the Mac Intel Version. With the windows version its no problem and works fine. When I compile the Mac Intel Version I get a warning:
System.Windows.Forms.dll assembly is referenced by user code, but is not supported on StandaloneOSXIntel Platform. Various failures might follow.
these are my includes:
using System.IO;
using System.Configuration;
using System.Globalization;
using PdfSharp;
using PdfSharp.Drawing;
using PdfSharp.Pdf;
using PdfSharp.Pdf.IO;
using PdfSharp.Drawing.Layout;
using PdfSharp.Pdf.Advanced;
the variables and constructor:
public class ReportMakerPDF : MonoBehaviour {
public int rowCountPage = 750; //275
public int rowCountPageMin = 650;
public int rowCntNewPage = 3;
public int rowCntNewPageStart = 2;
private static XGraphics[] xPages = new XGraphics[1];
private static PdfPage curPage = new PdfPage();
private static int pageIndex = 0;
private static ReportMakerPDF instance = null; // Setup singleton.
/// <summary>
/// Methode singleton.
/// </summary>
public static ReportMakerPDF Instance {
get { return instance; }
set { instance = value; }
}
/// <summary>
/// Konstruktor.
/// </summary>
public ReportMakerPDF() {
instance = this;
}
I have no Idee which function needs the Forms.dll, but could this be the reason for the exception? The exception occurs when I call a function in the Class (Also creating the Class at the same time).
Does Anyone have an idea how I could alternativly create a PDF with the Mac version?