Solved

Displaying Data

Posted on 2001-06-06
7
148 Views
Last Modified: 2010-05-02
Here is the situation-

I am pulling a bunch of data off of a remote server via an XML file encapsulated in a SOAP envelope.  Getting the data and storing it in variables is absolutely no problem.

My problem is the ability to display this data that I have pulled from the server in a nice way.  I tried using Crystal Reports, and found it to be a little more complicated then what I'm looking for.

Right now I'm playing around with a RTFBox, but that doesn't format stuff well (using tables at least).  An ideal solution would to display the data in an HTML file within my application.  However, I need to stay away from some of the limitations most web browsers set (lack of automated printing)

At some point I won't be displaying all of the reports and will want them sent right to the printer.  Does anyone have a solution for me on how I can neatly display data that is generated dynamically?
0
Comment
Question by:NJordan72
  • 4
  • 3
7 Comments
 
LVL 3

Expert Comment

by:Maxim10553
ID: 6160474
so is the data stored in XML format?
0
 

Author Comment

by:NJordan72
ID: 6160507
Well, the data is returned to the application in XML format, so technically yes.  I've already written a function that parses all of the data and stores it in various variables, but I could use just the XML if I found a solution that supported that!
0
 
LVL 3

Expert Comment

by:Maxim10553
ID: 6160523
why not just use XSL to format your data if you already have it in XML format? if you create a style sheet for your XML data and govern it with a DTD that would be the most scalable, platform-independent way to show the info.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:NJordan72
ID: 6160550
How would I go about displaying the XSL formatted data in a VB application.  I'm rather new to VB, sorry if this is a dumb question.
0
 
LVL 3

Expert Comment

by:Maxim10553
ID: 6160596
use the webbrowser control in VB and point it to your saved xml document. The xml document should include something like this to point it to the stylesheet <?xml-stylesheet type="text/xsl" href="C:\Stylesheets\StyleSheet1.xsl"?>
0
 

Author Comment

by:NJordan72
ID: 6160642
OK - Thanks, but one more quick question.  when using the webbrowser control does it limit you to the same functionality of IE, or will I be able to print the contents of the control from within VB (without the print dialog window?)
0
 
LVL 3

Accepted Solution

by:
Maxim10553 earned 50 total points
ID: 6160682
you have much more functionality because you have access to the browsers properties, methods, etc. and you can easily print the contents of the webbrowser control by using the .openurl method to store the source to a variable and use WinAPI to print the variable out. no print dialog necessary. it should be a breeze.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now