Floating fields don't appear in correct place.

Floating fields don't appear in correct place.

Forum member · Aug 1, 2006
I have a fillable form created with Adobe Designer which includes floating text fields within static text. I was able to make these fields appear in the document's field list be setting them visible. However, when I fill these fields the text doesn't appear in the location of the floating field, but in the upper left hand corner of the document. Is there any wway to make these fields behave correctly? the sample code follows. The fields named fee[0], state[0], and statename[0] are floating fields. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ofd.ShowDialog() Dim MyDocument As MergeDocument = New MergeDocument(ofd.FileName) MyDocument.Creator = "AcroFormFill.aspx" MyDocument.Author = "Your Name" MyDocument.Title = "W-9 AcroForm Filler" ' Get the imorted MyPage and set margins. Dim MyPage As ceTe.DynamicPDF.Page = MyDocument.Pages(0) Dim ct As Integer = MyPage.Elements.Count Dim myfldlist As FormFieldList = MyDocument.Form.Fields(0).ChildFields If myfldlist.Count = 1 Then myfldlist = myfldlist(0).ChildFields End If ' Add content to the MyPage myfldlist("ID[0]").Value = "0062584" myfldlist("ID[0]").IsReadOnly = True myfldlist("organization[0]").Value = "The Blue Grass Railroad Museum, Inc." myfldlist("organization[0]").IsReadOnly = True myfldlist("CurrentAgent[0]").Value = "Stephen J. Spisak" myfldlist("CurrentAgent[0]").IsReadOnly = True myfldlist("fee[0]").IsReadOnly = False myfldlist("fee[0]").Value = FormatCurrency(5) myfldlist("fee[0]").IsReadOnly = True myfldlist("state[0]").IsReadOnly = False myfldlist("state[0]").Value = "state" myfldlist("state[0]").IsReadOnly = True myfldlist("statename[0]").IsReadOnly = False myfldlist("statename[0]").Value = "Kentucky" myfldlist("statename[0]").IsReadOnly = True Dim raaddr As New StringBuilder raaddr.AppendLine("1212 Pradero Drive") raaddr.AppendLine("Frankfort, KY 40601") myfldlist("raaddr[0]").Value = raaddr.ToString ' Uncomment to make form read only 'MyDocument.Form.IsReadOnly = True ' Outputs the W-9 to the current web MyPage MyDocument.Draw("c:\Filledform.pdf") MyDocument = Nothing End Sub End Class

Re: Floating fields don't appear in correct place.

Support · Aug 1, 2006
Could you send over the PDF template that you are using to our support email account, [^a|mailto:support@cete.com|support@cete.com^]? We will then be able to try an reproduce the behavior and determine the exact cause. Thanks, ceTe Software Support Team

Re: Floating fields don't appear in correct place.

Forum member · Aug 3, 2006
JUst for completeness, I received the following response to this posting via e-mail: Actually I just went and checked with one of the developers on these floating fields. Unfortunately, it turns out that floating fields is a feature of Adobe Designer that DynamicPDF products do not support. Any standard form field would be okay but not floating fields. Let me know if I can be of further assistance. Thanks, Robbie