473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Data display issues

I am new to XML so pardon my ignorance. I have an XML file that is used to
layout an invoice from a program. The problem I am having is I need more
data than the program puts out so is it possible to use a script or
something to query an MS SQL Server database for the additional data. I so
how would you go about this. Any help would be great thanks in advance
Richard

Apr 17 '07 #1
3 2016
Richard wrote:
I am new to XML so pardon my ignorance. I have an XML file that is used
to layout an invoice from a program. The problem I am having is I need
more data than the program puts out so is it possible to use a script or
something to query an MS SQL Server database for the additional data. I
so how would you go about this. Any help would be great thanks in advance
There are lots of XML applications, e.g. there is XHTML (where elements
are in the namespace http://www.w3.org/1999/xhtml), there is XSLT (where
the program instructions are in the namespace
http://www.w3.org/1999/XSL/Transform), there is XSL-FO (where the layout
instructions are in the namespace http://www.w3.org/1999/XSL/Format).
Can you tell us what you use?

As for writing a script or program to query an MS SQL database that is
certainly possible with VBScript or JScript and ADO or with the .NET
framework but how that fits into your existing solution depends on what
kind of XML application you are using.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Apr 18 '07 #2
From what I can see there is no namespace as you would see in an xhtml
document. This is a Purchase Order layout for microsoft dynamics retail
management system. when you print an invoice this file is used to generate
the invoice and send it to the printer. I have included the top section of
the code below. I do not know if this helps.

<XML>

<PROPERTIES>
<DESCRIPTION XML Purchase Order </DESCRIPTION>
<AUTHOR Microsoft Corporation </AUTHOR>
<VERSION 1.0 </VERSION>
</PROPERTIES>

<!-- ========================= -->
<!-- Variable Declarations -->
<!-- ========================= -->

<!-- These variables may be altered: -->

<SET name="PaperWidth" custom="true" description="Paper Width"
type="vbDouble"8.50 </SET>
<SET name="PaperHeight" custom="true" description="Paper Height"
type="vbDouble"11.00 </SET>
<SET name="LogoWidth" custom="true" description="Logo Width"
type="vbDouble"1.125 </SET>
<SET name="LogoFilename" custom="true" description="Logo Filename"
type="String"</SET>

<SET name="HeaderHeight" custom="true" description="Margin Left"
type="vbDouble"0.75 </SET>
<SET name="FooterHeight" custom="true" description="Footer Height"
type="vbDouble"0.25 </SET>
<SET name="TotalsHeight" custom="true" description="Totals Height"
type="vbDouble"1.8 </SET>

<SET name="MarginLeft" custom="true" description="Margin Left"
type="vbDouble"0.30 </SET>
<SET name="MarginRight" custom="true" description="Margin Right"
type="vbDouble"0.25 </SET>
<SET name="MarginTop" custom="true" description="Margin Top"
type="vbDouble"0.50 </SET>
<SET name="MarginBottom" custom="true" description="Margin Bottom"
type="vbDouble"0.50 </SET>
<SET name="PageWidth" description="Page Width" type="vbDouble"PaperWidth -
MarginLeft - MarginRight </SET>
<SET name="PageHeight" description="Page Height" type="vbDouble">
PaperHeight - MarginTop - MarginBottom - HeaderHeight - FooterHeight</SET>

<!-- Margin -->

"Martin Honnen" <ma*******@yahoo.dewrote in message
news:em**************@TK2MSFTNGP05.phx.gbl...
Richard wrote:
>I am new to XML so pardon my ignorance. I have an XML file that is used
to layout an invoice from a program. The problem I am having is I need
more data than the program puts out so is it possible to use a script or
something to query an MS SQL Server database for the additional data. I
so how would you go about this. Any help would be great thanks in advance

There are lots of XML applications, e.g. there is XHTML (where elements
are in the namespace http://www.w3.org/1999/xhtml), there is XSLT (where
the program instructions are in the namespace
http://www.w3.org/1999/XSL/Transform), there is XSL-FO (where the layout
instructions are in the namespace http://www.w3.org/1999/XSL/Format).
Can you tell us what you use?

As for writing a script or program to query an MS SQL database that is
certainly possible with VBScript or JScript and ADO or with the .NET
framework but how that fits into your existing solution depends on what
kind of XML application you are using.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Apr 19 '07 #3
Richard wrote:
From what I can see there is no namespace as you would see in an xhtml
document. This is a Purchase Order layout for microsoft dynamics retail
management system.
You might want to ask in a dynamics group then if you want to solve the
problem with dynamics.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Apr 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JP SIngh | last post by:
Hi All I am writing an ASP application that deals with the TV tapes and two of the fields is what I am having issues with I need to store the duration of the program i.e. DURATION field only...
2
by: Mike | last post by:
Hi I have been tasked with converting my pulp and paper mills weekly projected and actual contractor hrs excel spreadsheet into a an Access 97 database. So far my design has been to use a...
2
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
4
by: Ken Varn | last post by:
I am displaying data from a SQL Server database on my ASP.NET web form. The data table that I am displaying is huge and it must be paged. What I would like to do is display 10 records at a time...
2
by: webonomic | last post by:
Converting data types I'm trying to do some image manipulation. This code project article (http://www.codeproject.com/csharp/imageresize.asp) has a great method I want to modefy. Here it is: ...
3
by: c676228 | last post by:
Hi everyone, I have a piece of code in sales.aspx.vb like this: Protected WithEvents Message As System.Web.UI.WebControls.Label Try ... ChartImage.ImageUrl = "ChartGenerator.aspx?" + DataStr +...
7
by: Janis | last post by:
I try to understand what could be the source of a problem with displaying and hiding rows of tables using display:block/none. I've read selfhtml but could not find any hint about that. Any...
13
by: Tomasz Jastrzebski | last post by:
Helo All, The problem: GridView control does not render at all (header/footer) when the data source is empty. I have seen a similar question posted already, but I just can not believe there is...
22
by: Zytan | last post by:
I have public methods in a form. The main form calls them, to update that form's display. This form is like a real-time view of data that is changing. But, the form may not exist (it is...
5
by: jej1216 | last post by:
I am writing a PHP page to open a row of data from a MySQL database so the user can edit the data. This page mimics the inital data entry page. Everything is working so far, with the following two...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.