Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Sat Apr 04, 2020 2:48 pm

Hello good day! I am the version of freeSpire.pdf that is in the path C: \ Program Files (x86) \ e-iceblue \ Spire.Xls-Fe \ Bin \ NET4.6 \ Spire.Pdf.dll summer 6.1.4.2046 I am still receiving the Evaluation Warning: The document was created with Spire.PDF for .NET message. why?
{
//start >>>
MemoryStream cmrStream = new MemoryStream();
//<<<end

Spire.Xls.Workbook workbook = new Spire.Xls.Workbook();
workbook.LoadFromFile(@"C:\Carga Excedente\excel.xlsm");

{
using (PdfDocument pdf = new PdfDocument())
{

//generate the same page 5 times into one PDF
for (int pageNo = 1; pageNo <= 1; pageNo++)
{
MemoryStream pdfStream = new MemoryStream();
workbook.Worksheets["sheets3"].SaveToPdfStream(pdfStream);

var pdfPage = new PdfDocument();
pdfPage.LoadFromStream(pdfStream);

pdf.AppendPage(pdfPage);
}

//start >>>
pdf.SaveToStream(cmrStream);
}

using (PdfDocument pdf = new PdfDocument())
{
pdf.LoadFromStream(cmrStream);
//<<<end
pdf.SaveToFile(@"C:\Carga Excedente\sheets3.pdf");
System.Diagnostics.Process.Start(@"C:\Carga Excedente\sheets3.pdf");
this.WindowState = FormWindowState.Minimized;
}
}
}

reibeiro
 
Posts: 2
Joined: Mon Mar 30, 2020 9:40 pm

Mon Apr 06, 2020 3:30 am

Hi,

Thanks for your post.
The product you downloaded is Free Spire.Xls not Free Spire.Pdf. The downloading link of Free Spire.PDF is https://www.e-iceblue.com/Download/down ... -free.html.
In your code, you are using the functions of both Spire.XLS and Spire.PDF. When using two or more single products in one project, that needs to use the corresponding dlls from Spire.Office package. The downloading link of Free Spire.Office is https://www.e-iceblue.com/Download/offi ... -free.html.

Wish you a good day!

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2767
Joined: Wed Jun 27, 2012 8:50 am

Mon Apr 06, 2020 4:46 pm

sim funciona muito bem, obrigado! :lol:
yes it works great, thanks! :lol:

reibeiro
 
Posts: 2
Joined: Mon Mar 30, 2020 9:40 pm

Tue Apr 07, 2020 1:19 am

Hi,

You are welcome.
If you need further assistance, welcome to contact us again.
Wish you all the best!

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2767
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF

cron