Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am using syncfusion way to create excel sheets. Now I want to create pdf with same format. I looked at sample code of syncfusion and its very complex. So Is there any way to use already created excels to generate pdfs.
I used this code to create excel

C#
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;
Posted
Updated 17-Jun-13 23:06pm
v2
Comments
Sunasara Imdadhusen 18-Jun-13 4:41am    
Where is your code?
mayankkarki 18-Jun-13 8:40am    
by using above code I am creating excel document. Now I want to create Pdf with same format.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900