0
문서 (예 : doc, rtf, txt)를 이미지로 내보내는 기능을 찾고 있습니다. 이러한 기능을 XtraRichEdit가 지원합니까? 이것은 Aspose.Words에서 확실히 지원되지만 DevExpress에 대해서는 확신하지 못합니다.DevExpress WinForms XtraRichEdit - 이미지로 문서 내보내기
문서 (예 : doc, rtf, txt)를 이미지로 내보내는 기능을 찾고 있습니다. 이러한 기능을 XtraRichEdit가 지원합니까? 이것은 Aspose.Words에서 확실히 지원되지만 DevExpress에 대해서는 확신하지 못합니다.DevExpress WinForms XtraRichEdit - 이미지로 문서 내보내기
라이브러리는 XtraPrinting 라이브러리를 사용하여 수행 할 수 있습니다. 아래 코드를 참조하십시오.
using DevExpress.XtraPrinting;
//...
PrintableComponentLink link = new PrintableComponentLink(printingSystem1);
link.Component = richEditControl1;
link.CreateDocument();
link.ExportToImage(@"c:\image.png", new ImageExportOptions()
{
Format = System.Drawing.Imaging.ImageFormat.Png,
ExportMode = ImageExportMode.DifferentFiles,
Resolution = 96
});
이 솔루션으로 여러 페이지 출력이 생성 될 수 있습니까? – SharpAffair
물론 그렇습니다. 나는 나의 대답을 업데이트했다. 또한 [문서] (http://documentation.devexpress.com/#CoreLibraries/DevExpressXtraPrintingImageExportOptionsMembersTopicAll)을 살펴보십시오. – DmitryG