Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Sat Jul 13, 2019 5:39 am

Hi,
It sounds funny but,
since a few day I have the problem,
when running the programm on a microsoft surface,
the form is getting smaller.

Private Sub BtnCreatePDF_Click(sender As Object, e As EventArgs) Handles BtnCreatePDF.Click
Dim Dokument As New Spire.Doc.Document
Cursor.Current = Cursors.WaitCursor
Dokument.LoadFromFile("C:\Temp\Protokoll.docx")
Dokument.SaveToFile("C:\temp\OutputFile.pdf", FileFormat.PDF)
Dokument.Close()
Cursor.Current = Cursors.Default
End Sub

If I run the program on my pc everything is ok.
I installed the latest updates from e-iceblue and the mircosoft.

GHWels
 
Posts: 90
Joined: Sun Nov 23, 2014 7:22 pm

Mon Jul 15, 2019 2:55 am

Hello,

Thanks for your inquiry.
According to the screenshots you provided, I found that the forms have different BorderStyles. I think your issue is not related to our product. However, you can try the following code snippet to fix the window size of form. If there is any other question, just feel free to write back.
Code: Select all
......
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
......

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Mon Jul 15, 2019 5:46 am

No that is not the problem

The size will be suddenly reduced, during the "save process"

Dokument.SaveToFile("C:\temp\OutputFile.pdf", FileFormat.PDF)

My be the reason is a nupdate from windows?

thank you

GHWels
 
Posts: 90
Joined: Sun Nov 23, 2014 7:22 pm

Mon Jul 15, 2019 8:36 am

Hello,

Thanks for your quick feedback.
Do you mean that the issue will not occur if you comment out the line: Dokument.SaveToFile()? Here, I uploaded my .exe Demo for you, please test it on your side and then let us the result, if the issue still occurs after trying, to help further investigate it, please share us with the system information (E.g. Win8, 64 bit) as well as the region setting (E.g.China, Chinese) of your Microsoft surface.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Tue Jul 16, 2019 7:26 am

Hello,

It's the same.
I sende you a video of your program.

64bit
country austria
language german

GH

GHWels
 
Posts: 90
Joined: Sun Nov 23, 2014 7:22 pm

Tue Jul 16, 2019 8:44 am

Hello,

Thanks for your quick response.
As for this issue, how about your testing result if you comment out the line: Dokument.SaveToFile()? To help us reproduce your issue, please also share us with the OS information (E.g. Win8) of your Microsoft surface? Besides, you can try to run it with other Microsoft surface to eliminate the caused reason.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Tue Jul 16, 2019 11:12 am

Hello,
I'll send you again a video.
Without saving as PDF and later with saving the PDF

I have the latest updates but I cannot install it on different plattforms.
An you can see the info of my surface.
my program i wrote with spire-doc rund on Surface-pro and different versions of the surface.
If I am running the program on my PC, everthing is ok.

GH

GHWels
 
Posts: 90
Joined: Sun Nov 23, 2014 7:22 pm

Wed Jul 17, 2019 6:39 am

Hello,

Thanks for your more information.
I tested your case on another PC (Win10, 64bit and same region settings), but I still didn't reproduce your issue. Generally, the internal program code of our product will not modify the form size. I am afraid this issue should be related to the Microsoft Surface-pro. But we don't have Microsoft surface-pro to do the test. Anyway, we are doing further investigations now, if there is any good news, we will let you know.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Fri Jul 19, 2019 7:12 am

Hello,

Thanks for your patience.
As for this issue, we contacted the support team of Microsoft Surface and requested them to make an initial test. They did reproduce your issue. Thus, to help us do further investigations, please help to test the following more scenarios and then let us your testing result. Thanks in advance.
1. Using our PS method to save to PDF file.
Code: Select all
Dim Dokument As New Spire.Doc.Document
Cursor.Current = Cursors.WaitCursor
Dokument.LoadFromFile("Protokoll.docx")
Dim ps As ToPdfParameterList = New ToPdfParameterList
ps.UsePSCoversion = True
Dokument.SaveToFile("OutputFile.pdf", ps)

2. How about if you save the word file to other format file such as SVG?
Code: Select all
 Dim Dokument As New Spire.Doc.Document
 Cursor.Current = Cursors.WaitCursor
 Dokument.LoadFromFile("Protokoll.docx")
 Dokument.SaveToFile("result.svg", Spire.Doc.FileFormat.SVG)

Sincerely,
Lisa
E-icbelue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Mon Jul 22, 2019 2:49 pm

Hi Lisa,

Version 1 with PSCoversion is working.
thank you for your fast help.

GH

GHWels
 
Posts: 90
Joined: Sun Nov 23, 2014 7:22 pm

Tue Jul 23, 2019 1:37 am

Hello,

Glad to hear that the PS method resolved your issue. As for the getting smaller issue of our normal saving method, we will not fix it, because the normal method will be obsoleted in the future. Thus, please use the PS method for your project. If there is any other question, please do not hesitate to contact us.
Wish you all the best!

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.Doc