Hi All,
i got few questions to ask regarding about publishing dataset to html format !!!
-------------------
PublishHTML("C: \Inetpub\wwwroo t\Report.htm", myDataSet1.Tabl es("table01"))
Quesion 1 - the above is the command to run the "PublishHTM L" procedures...
i want to know if the file path is dynamic change, and is changed according to the time when user install the application.
if there is a way to change to something like ".Applicati on/Report.htm" so no matter where i install my application, i am able to retrieve that directory report.
i remember there is a way to show the application path in VB6....so no matter what directory i install the application...a s long as i type XXX this will refer to the application path.
Question 2 - the above command line, I need more than 1 table, so in that case, how should i assign that table ? assign dataset instead of table ?
---------------------------
Question 3 - pls refer to the following code....The following procedure only consist of 1 table, but i need to have more than 1 table...
pls guide me how to to it....
Public Sub PublishHTML(ByV al path As String, ByVal table As DataTable)
Dim output As New StreamWriter(pa th, False, UnicodeEncoding .Default)
Dim iIndx, RowIndex As Integer
output.WriteLin e()
output.Write("< HTML><HEAD><Tit le>Baroque Mobile</Title></HEAD>")
output.Write("< body bgcolor=""#FFFF FF"">")
output.Write("" )
' Start Table
output.Write("< TABLE Border = 0 BGCOLOR=""#FFFF FF"" WIDTH=""90%"">" )
'Start Column Header
For Each col As DataColumn In table.Columns
output.Write("< TD>")
output.Write("< font face=arial size=1><B>  ")
output.Write(co l.ColumnName)
output.Write("</B></font>")
output.Write("</TD>")
Next
output.Write("</TR>")
---------------------
' START COLUMNS AND ROWS
For RowIndex = 0 To table.Rows.Coun t - 1
output.Write("< TR>")
For iIndx = 0 To table.Columns.C ount - 1
output.Write("< TD>")
output.Write("< font face=arial size=1><B>  ")
output.Write(ta ble.Rows(RowInd ex).Item(iIndx) .ToString)
output.Write("</B></font>")
output.Write("</TD>")
Next
output.Write("</TR>")
Next
' END COLUMNS AND ROWS
'------------------------------------
output.Write("</TABLE>")
' End Table
output.Write("</BODY></HTML>")
output.Close()
End Sub 2 1694
answer for question 1:
System.AppDomai n.CurrentDomain .BaseDirectory
this is the path where your exe file exist...
Hi PK,
Here a sample I made once for somebody http://www.google.com/gr************...TNGP11.phx.gbl
And not for me, however there are some who use a newsreader which gives
problems with HTML posting, they never post back, something to remember on
next time.
I hope this helps?
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Patrick Stephens |
last post by:
Hi,
I produce a 30 page report that has data and two charts per page, using
Access 2000. My boss wants the report in WORD format. When I use the
"office links" to "Publish it in Word" I get all the text but not the
charts. Any Ideas??
--
Regards,
|
by: andrewcw |
last post by:
I read in a earlier post that I can get the column of a grid to sort by datetime if the column type was set as Date
I deserialize my XML and one attribute of the XSD has type as dateTime but upon inspection and behavior in the gri
the data type is string. If I preview the dataset with the GUI in VISSTUDIO it shows my datatype to be dateTime ..
If I try to rest the datatype I get this erro
Additional information: Cannot change DataType...
|
by: Jeroen Pot |
last post by:
Hi,
I have a dataset "Mydataset" which contains of a few fields. (lets say
dept_id and dept_name)
A user can select several of these, and i want to export this to an access
database.
I have a database with one table (dept) and identical colums as the dataset.
But i can't figure out how to get the dataset into the database.
|
by: Sharon |
last post by:
I have successfully loaded a DataSet object with a XML schema (XSD).
Now I wish to populate the tables that was created in the DataSet.
I have an XML file/string that contain all the needed data in the same
format as the XSD (the XML file/string was created using this same schema).
The XML file/string may contain data for a single table or for several
tables at once.
The question is:
|
by: Martin |
last post by:
Hi!
I'm new to ASP.NET WebApplications and wonder whether I've missed
something out when programming it. I'm grateful for any hints to this
problem!
Thanks very much for your efforts!
Martin
Description:
| |
by: chrisn |
last post by:
I want to store text with HTML tags in an XML field, and to do this I
plan to use a CDATA field so that malformed HTML tags don't corrupt the
XML file structure (I have no control over the format of the HTML).
Rather than writing out the XML file explicitly, for simplicity I want
to write the data via a dataset that will then be persisted using
ds.WriteXML (and maybe reloaded via ds.ReadXML).
Can I set the dataset column that will hold...
|
by: Maxwell2006 |
last post by:
Hi,
We are having a debate over using DataSet as return value type for web
services.
The problem is that we don't know whether Java applications can use DataSet
|
by: Helpneeded |
last post by:
On my web site, I want to display information about my company. I want
this info to come from a doc file or any other format, so that whenever
I change the contents of this file, the web site is automatically
updated.
Is there a "cool" way of doing this in asp.net or any other technology?
Best Regards
helpneeded
|
by: Joseph Geretz |
last post by:
I'm a bit puzzled by the current recommendation not to send Datasets or
Datatables between application tiers.
http://support.microsoft.com/kb/306134
http://msdn2.microsoft.com/en-us/library/ms996381.aspx
Formerly, with classic Microsoft DNA architecture, the ADO Recordset was a
primary transport medium, recommended for transmitting data between
application tiers. In fact, there are whole books written on the subject.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |