Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
SaveToFile fails |
Post Reply ![]() |
Author | |
JerryK ![]() Beginner ![]() Joined: 4 hours 26 minutes ago Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 4 hours 10 minutes ago at 9:39PM |
SaveToFile fails.
1. Is there a way to find out why? It has been working fine for several years, until now. 2. Is there a limit to the length of the path? The length might be a bit longer than used previously, but well below the Windows path length maximum. Using C and the 1711 library. Thank you.
|
|
![]() |
|
swb1 ![]() Debenu Quick PDF Library Expert ![]() Joined: 05 Dec 05 Location: United States Status: Offline Points: 103 |
![]() ![]() ![]() ![]() ![]() |
There is not much to the SaveToFile function. A drill down through the code gets us to this API call which tests for save capability:
<result> = CreateFileW(PWideChar(FileName), GENERIC_READ or GENERIC_WRITE, 0, nil, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0) If that returns false, you cannot save a file. In Delphi I could call System.GetLastError - RAD Studio API Documentation and I might learn "why". I do not know if you have that option in C. My guess is that the OS is saying "No" for some reason. Maybe permissions, bad path, file in use, etc. but I don't think there is anything about QPL that should be the source of the issue. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store