0

私はsyncfusionの方法を使ってExcelシートを作成しています。今、同じ形式でpdfを作成したいと思います。syncfusion のサンプル コードとその非常に複雑なコードを見ました。作成済みの Excel を使用して PDF を生成する方法はありますか。

このコードを使用してExcelを作成しました

Assembly executingAssembly = typeof(MainPage).GetTypeInfo().Assembly;
            Stream inputStream = executingAssembly.GetManifestResourceStream("CRICKIT.Assets.TVM.xlsx");

            IWorkbook book = await this.excelEngine.Excel.Workbooks.OpenAsync(inputStream);
            inputStream.Dispose();

            //Create Template Marker Processor
            ITemplateMarkersProcessor marker = book.CreateTemplateMarkersProcessor();
            //Binding the business object with the marker.
            marker.AddVariable("TVMManager", App.ViewModel.TVMManager);

            //Applies the marker.
            marker.ApplyMarkers(UnknownVariableAction.Skip);
            return book;
4

2 に答える 2