Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
praxkan

Veteran
Registered:
Posts: 142
Reply with quote  #1 
Is there any reasonable workaround to SWIFT/SQL Reports to get metastorm forms to print?


1
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #2 
a print button using Window.Print();
But there's no options for formatting so it usually cuts something off if the form is larger than 8.5x11

Otherwise you would have to look into css templates or pdf generation.(I use iTextSharp for that)

EDIT: Window.Print(); does NOT list out any information on the tables that are not currently visible on screen, it just prints the scroll bar(s)
0
praxkan

Veteran
Registered:
Posts: 142
Reply with quote  #3 
Joe do you have any examples of using iTextsharp/css templates to print metastorm forms?

I tried all the IE print options and even simple things like dropdowns and grids refuse to render, possibly because of a botched telerik implementation
0
JoeOmerta

Veteran
Registered:
Posts: 210
Reply with quote  #4 
Here's a list of iTextSharp examples.
http://simpledotnetsolutions.wordpress.com/2012/04/08/itextsharp-few-c-examples/

The way i've built many of these was to write all the html in a string, this handles all of your formatting.  You can also add any attachments into it(images, pdf's, word docs, etc...)

Here's an example of the Notes page.


    String htmFragment = "";
    // Add the title
    htmFragment += "<h2 class=\"FormTitle\">";
    htmFragment += "Notes";
    htmFragment += "</h2><p>&nbsp;<br/>&nbsp;</p>";
    // Build the entities table
    htmFragment += "<table width=\"500\" border=\"1\">";
    Metastorm.Runtime.Types.List theNotes = Mstm.AllNotes(folderID);
    htmFragment += "<tr>";
    htmFragment += "<td valign=\"top\" class=\"NVLabel\"><b>"  + "Note History [" + theNotes.Count + " notes]" + "</b></td>";
    htmFragment += "</tr>";
    if(theNotes.Count > 0)
    {
      for (int i = 0; i < theNotes.Count; i++)
      {
        htmFragment += "<tr>";
        htmFragment += "<td class=\"NVValue\">" + theNotes[i].ToString().Replace("\n", "<br/>") + "<br/></td>";
        htmFragment += "</tr>";
      }
    }
    // Close the table
    htmFragment += "</table>";
0
praxkan

Veteran
Registered:
Posts: 142
Reply with quote  #5 
Thanks
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!