K
Ken Ward
Guest
I'm evaluating a third party .net library called DynamicPDF. http://www.dynamicpdf.com/Support/NET_Help_Library_16_03/?DynamicPDF%20Generator%20for%20.NET.html#ceTe.DynamicPDF~ceTe.DynamicPDF.PageElements_namespace.html The problem I'm having is the behavior of Progress with regard to whether or not it sees certain classes within the same library. Here's some basic example code. USING ceTe.DynamicPDF.PageElements.*. USING ceTe.DynamicPDF.*. DEF VAR myDocument AS Document NO-UNDO. DEF VAR myPage AS Page NO-UNDO. myDocument = NEW Document(). myPage = NEW Page(). myPage:Elements:Add(NEW Label("Hello World!", 0, 0, 100, 12, Font:Helvetica, 12)). MyDocument
ages:Add(myPage). MyDocument
raw("d:\User\ken\hello.pdf"). This could be dropped into an empty .p and run (assuming the assemblies.xml is setup properly): This code works and produces a simple PDF with the words "Hello World!" on it. Now, if I replace the Label with a Line like this: MyPage:Elements:add(NEW Line(72, 72, 144, 144)). I get the following Errors. Could not find class or interface Line. (12886) Could not locate method 'add' with matching signature in class 'ceTe.DynamicPDF.PageElements.Group'. (14457) ** Could not understand line 12. (196) The full Namespace for Label (which works) is ceTe.DynamicPDF.PageElements.Label and Line is ceTe.DynamicPDF.pageElements.Line . Why does Progress see Label but not Line ? I have tried to surround Line with quotes and I've tried putting the entire namespace in, it still errors. If there was a problem with my assemblies.xml, then Label shouldn't work either.
Continue reading...
Continue reading...