Solved

Displaying Data

Posted on 2001-06-06
7
151 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

774 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