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!
![]() |
SetFormFieldColor error |
Post Reply ![]() |
Author | |
Gemici ![]() Beginner ![]() ![]() Joined: 05 Jul 21 Location: Germany Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 05 Jul 21 at 8:27AM |
Hi all,
I'm trying to set the color of the text with the "DPLSetFormFieldColor" function. Here is my code:
DPLSetFormFieldColor: function (InstanceID: Integer; Index: Integer; Red: Double; Green: Double; Blue: Double): Integer cdecl;
DPLSetFormFieldColor: = GetFuncAddress ('DPLSetFormFieldColor'); But when I call it, I get an error:
Result := DPLSetFormFieldColor (libID, FormFields [aFormIdx] .FormID, aRed, aGreen, aBlue);
Any one can help me on this? Thanks in advance!
|
|
![]() |
|
tfrost ![]() Senior Member ![]() Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
![]() ![]() ![]() ![]() ![]() |
What error did you get? A compile error, or a zero result or an exception when you ran the program?
The second parameter for this function is supposed to be "The index of the form field to work with". So it seems strange that you are passing a field named FormID.
|
|
![]() |
|
Gemici ![]() Beginner ![]() ![]() Joined: 05 Jul 21 Location: Germany Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
I get an exception: External exception E06D7363 when i ran the code I have one text field in the PDF and have also tried the following, but still get the exception:
Result: = DPLSetFormFieldColor (libID, 1, 0.7, 0.7, 0.7);
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Gemici, exception E06D7363 has nothing to do with QuickPDF itself. E06D7363 is a microsoft C++ exception. Seems that a file is locked or not free yet. Perhaps access rights are missing... Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
![]() |
|
Gemici ![]() Beginner ![]() ![]() Joined: 05 Jul 21 Location: Germany Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
Hi, the file is not locked and it is also free. Access rights are also available because other functions work for example: Result:=DPLSetFormFieldTextSize (libID, 1,20); Only the DPLSetFormFieldColor function does not work |
|
![]() |
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