FAQ Database Discussion Community


Configure Rails Carrierwave::Uploader with Aspose to display thumbnails of office docs

ruby-on-rails,carrierwave,aspose,cloudinary
Despite the well-documented Cloudinary API, I failed to use office docs Aspose conversion in my CarrierWave::Uploader. Here is my best shot: class CamplogPicUploader < CarrierWave::Uploader::Base include Cloudinary::CarrierWave cloudinary_transformation :resource_type=>:raw do process raw_convert: 'aspose' end end Office documents are well uploaded to Cloudinary but no associated pdf created as well. Anybody...

How to render PDF byte array in an HTML Object tag

c#,asp.net,pdf,aspose
I have a PDF that was generated by ASPose as a byte array, and I want to render that PDF inside of a component on a web page. using (MemoryStream docStream = new MemoryStream()) { doc.Save(docStream, Aspose.Words.SaveFormat.Pdf); documentStream = docStream.ToArray(); } I thought it would just be a simple variation...

Cannot Retrieve Data from Excel File Created using Aspose.Cells

excel,excel-2007,aspose,aspose-cells
I create an Excel file (.xlsx) using the Aspose.Cells library. But I'm not able to read the data (retrieve rows) using OleDb commands after that, until I open the file and save it manually. I'm running something as simple as this one: new OleDbDataAdapter("select * from [Sheet1$]", conn); // etc......

Image is not opening after converting with aspose

c#,webrequest,aspose,aspose.words
I used the below code to convert url stream into tiff image. But after conversion, the convert image is not opening for preview. Any Ideas? var myRequest = (HttpWebRequest)WebRequest.Create("http://www.google.com"); myRequest.Method = "GET"; var myResponse = myRequest.GetResponse(); var responseStream = myResponse.GetResponseStream(); var memoryStream = new MemoryStream(); responseStream.CopyTo(memoryStream); var loadOptions = new...

How to format cells in Aspose

c#,aspose,aspose-cells
I am trying to make a piece of text bold at a particular cell but not able to. This is the code I am using: Style boldStyle = workBook.CreateStyle(); boldStyle.BackgroundColor = Color.Red; StyleFlag boldStyleFlag = new StyleFlag(); boldStyleFlag.HorizontalAlignment =true ; boldStyleFlag.FontBold = true; Cell c = workSheetIntroduction.Cells["B1"]; c.SetStyle(boldStyle, boldStyleFlag); ...

Creating blank mpp file in Aspose.Tasks in C#

c#,aspose,mpp
I want to create a balank mpp file in c# using Aspose.Tasks. Here is my code. Project project = new Project(); project.StartDate = new DateTime(2015, 3, 3); project.FinishDate = new DateTime(2015, 5, 6); project.NewTasksAreManual = false; project.CurrencyCode = "USD"; project.CurrencyDigits = 2; project.CurrencySymbol = "$"; project.Save("D:\\DemoProject.xml", SaveFileFormat.XML);//Working project.Save("D:\\DemoProject.MPP", SaveFileFormat.MPP);//Not working...