0
는왜이 이미지를로드 할 수 없습니까? 나는 C#에서 JPG 이미지를 검색하려고 미쳐 가고 있어요
이 내 클래스 :
namespace PdfReport
{
// Classe base che rappresenta un PDF:
public class iTextDocumentBase : MyManagerCSharp.ManagerDB
{
// Oggetto MemoryStream che contiene il PDF:
protected System.IO.MemoryStream _risultatoMemoryStream = new System.IO.MemoryStream();
protected iTextSharp.text.Document _document; // Generico documento di iText valido per qualsiasi formato di output
protected iTextSharp.text.Chapter _capitolo; // Contenitore per un insieme di Section opportunamente sequenziate
protected iTextSharp.text.Section _section; // Parte del Document costituita da un insieme di Paragraph opportunamente disposti
protected System.Drawing.Image _backgroundImg = System.Drawing.Image.(Server.MapPath("~/Path/Relative/To/Root.jpg"));
..........................................................
..........................................................
..........................................................
}
당신은 내가이 선으로 이미지를 얻기 위해 노력하고 볼 수 있듯이 :
protected System.Drawing.Image _backgroundImg = System.Drawing.Image.(Server.MapPath("~/Path/Relative/To/Root.jpg"));
:Error 78 The name 'Server' does not exist in the current context C:\Develop\EarlyWarning\public\Implementazione\Ver2\PdfReport\iTextDocumentBase.cs 43 79 PdfReport Error 77 Identifier expected C:\Develop\EarlyWarning\public\Implementazione\Ver2\PdfReport\iTextDocumentBase.cs 43 78 PdfReport
문제는 내가 다음과 같은 오류 메시지를 얻을 수 있다는 것입니다
왜? 무엇을 해결할 수 있습니까?