How can I hide/unhide a subform using ABCPDF - abcpdf

I am currently in a situation where I have a sub form inside a page of a PDF Template, with a group of fields wrapped inside the sub form.
I am using Adobe Lifecycle designer ES2 to create my templates.
Is it possible using ABCPDF tool(ABCpdf .NET Pro 7), to hide/unhide the sub form, along with wrapped fields through the code.
I am using C#, .NET (4.0), visual studio 2010.

Adobe Lifecycle Designer uses a different type of form than ABCPDF 7 uses.
See this description. Towards the bottom we have this:
You can use Acrobat to edit forms using the Advanced Editing tools available under the Tools menu.
However, if you choose items from the Forms menu or toolbar, then you will probably find that you end up editing your form in Adobe Designer rather than Acrobat.
Adobe Designer is an application which comes with Acrobat Pro. It uses PDF as an output medium. However, the way that Designer operates means that forms created by Designer are fundamentally different from forms created by Acrobat.
For example, an Acrobat created form typically contains a background and then a set of fields. The fields operate separately from the background.
Adobe Designer-created forms do not make this distinction. They use a separate data store to specify the fields. The PDF content is merely the visible rendition of this field specification. The underlying field specification is made up of chunks of XML embedded in the PDF.
(The word "Livecycle" was added to the product name after this was written, when it was still called "Adobe Designer".)
The forms supported by ABCpdf, also known as AcroForms or eForms, do not even have a concept of "subform" and so what you are talking about is impossible with ABCpdf.

Related

How to obtain a list of widgets in a windows form

I am trying to automate a help system. I have it set up so you right-click on any widget (Button, etc.) and one of the items is help. Selecting help causes a help file to display (PDF, HTML, or Wiki). Help positions the display to the paragraph that describes the widget. (The document is a hypertext document so the paragraph can contain cross links, etc.)
All of this is working. There is an implementation problem in that it is necessary to input the widget name manually when building the widget list for the help system. The problem is widgets can be renamed during development. New widgets can be added. Old ones deleted, etc. Maintenance becomes a problem.
So my question is, is it possible to obtain a list of widgets by form from a .net application being developed using Visual Studio? I don't mind scraping a set of files to extract the list, but I do need to automate obtaining the list so I can compare with the current list to determine any maintenance necessary to keep the help system in sync with the .net application.
Developer Studio does generate partial classes that do contain the information. Parsing these will be some effort since the parser must understand the format of the class. What would be nice is if Visual Studio had the ability to produce information about the structure of the app being developed.

Where is the DateTimePicker's native icon stored in Windows?

I'm looking to extract the calendar / dropdown icon from the native Windows DateTimePicker control at runtime. i.e. This little guy on the right (or something similar):
Does anyone know where it's found? (e.g. what API call paints it or what DLL the resource is stored in)?
Details
It's for a C# custom control (WinForms). I don't like the built-in DateTimePicker and am making a better one that allows rapid freeform text entry then parses it with more intelligence and less constraints. I plan to distribute my custom control as a single snippet of source code (.cs file) that's easy to copy/paste (nothing else required).
I know the Segoe MDL2 font has a calendar icon in it (E787) but I can't guarantee my target platforms will have it.

Custom controls in Visual Studio Lightswitch

Can someone point me to an article or tutorial on using custom controls in Visual Studio Lightswitch? I'm trying to add a rich text box to a page, linked to a string property. When running the app, sometimes the field will show up, sometimes it won't. If it does show the width of the field is small, about 2 characters, but will expand when text is pasted inside. Saving doesn't work, though.
I'm not even sure about whether or not I'm allowed to use controls like these in a Lightswitch app, even though custom controls are obviously supported. Are the custom controls restricted to a certain type or set?
Thanks in advance for any assistance.
W.
Have a look at the following example, http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/10/LightSwitch-Student-Information-System-Part-3-Custom-Controls.aspx
Also the Training Kit has examples of Custome Controls included.
There is also this tutorial:
Creating A LightSwitch Custom Silverlight Control
http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/2/Creating-A-LightSwitch-Custom-Silverlight-Control.aspx

Programatically configure Office 2010 Word Ribbon via VBA

Is it possible to configure a Ribbon (e.g. adding a tab etc.) in Office 2010 programatically via VBA? I.e. by writing VBScript code in a macro.
Br. Morten
You can manipulate a Ribbon tab and its controls using VBA, but you cannot create one. Not with the Object Model anyway. The best you could do - somehow - is to get some kind of OPC dll (like an ActiveX component) that handles opening/relationships/closing of OPC documents (like .docx documents) and old school MSXML for creating a ribbon definition and adding it to the package.
Have a look at this blog post for Excel
http://www.xtremevbtalk.com/showthread.php?t=265636
and this one for Word
http://www.wordarticles.com/Shorts/RibbonVBA/RibbonVBADemo.htm
If your UI is static, i.e. you don't need to programatically change the behavior of, or add/remove UI elements on the fly, you can define a customUI within a macro-enabled template. You can use your VBA functions as call-backs for the UI elements defined in the XML.
Have a look at this guide. In a nutshell, you define a customUI\customUI14.xml file within the .dotm archive. This XML describes your custom ribbon elements using this schema.
This definitely works for Word templates (.dotm files). I think a similar approach works for any OOXML format.

Inject Open XML into an Open PowerPoint Presentation

I'm looking for a way to inject PresentationML and/or DrawingML into an open PowerPoint 2007/2010 presentation using the Open XML SDK or just System.IO.Packaging. There is an article on doing this with Word, but in that example it is using the Range.XML routine in Word's object model, which I cannot find an equivalant for in PowerPoint's object model.
The reason I'm looking to do this is if I have an item on it that the PowerPoint client does not support editing of but that Open XML does (and as a result, PowerPoint will display it). I want to set this myself via a managed-addin (VSTO) on the open presentation. An example would be the underline of text (not that I'm looking for this, but it is an example) - in PowerPoint, you cannot make the underline of text a picture <a:blip/>, but in Open XML you can.
Does anyone know how to do this?
I am using both OpenXML SDK 2 and the Object Model to process presentations.
What I do, simplistic as it sounds, is to save the presentation, close it, perform all the XML modifications I need using OpenXML SDK, and then load the presentation back and continue with the Object Model.
Nope, according to Microsoft support: http://www.ureader.com/msg/10972430.aspx

Resources