Solved

Displaying Data

Posted on 2001-06-06
7
154 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

737 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