Solved

Displaying Data

Posted on 2001-06-06
7
149 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

929 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

19 Experts available now in Live!

Get 1:1 Help Now