|
i have applied all types of DataFormatString property in gridview. but i cant get what i expect. help me plz
|
|
|
|
|
Your format should be dd/MM/yyyy HH:mm
Check out MSDN[^] for more details on the format strings available.
|
|
|
|
|
HI,
First I am receiving following error:
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154.
now resolve it n server..
i want to view document from some server location.
1) The below code is view document from some location.its properly working in local system.
if i am going to publish this code in IIS, nothing can view document..
Dim WordApp As New Word.ApplicationClass()
Dim missing As Object = System.Reflection.Missing.Value
Dim fileName As Object = "\\XXX.XXX.X.X\d\TEST.DOC"
Dim newTemplate As Object = False
Dim docType As Object = 0
Dim isVisible As Object = True
Dim aDoc As Word.Document = WordApp.Documents.Add(fileName, newTemplate, docType, isVisible)
WordApp.Visible = True
2) The below code is converting pdf from ms word doument. this also didnt working while im phblishing code in IIS
Dim filesource As Object ="\\XXX.XXX.X.X\d\test.doc"
Dim app As New Word.Application
Dim missingValue As Object = Type.Missing
Dim ac As New Word.Application()
Dim myTrue As Object = True
Dim myFalse As Object = False
Dim document As New Word.Document
app = ac.Application
app.DisplayAlerts = Word.WdAlertLevel.wdAlertsMessageBox
document = app.Documents.Open(filesource, myTrue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue)
app.ActivePrinter = "PDF995"
'app.ActivePrinter = "PrimoPDF"
app.ActiveDocument.PrintOut(myFalse, myFalse, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, myFalse, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue, missingValue)
document.Close(missingValue, missingValue, missingValue)
app.Quit(missingValue, missingValue, missingValue)
aDoc.Activate()
Please Give Solution,Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
|
|
|
|
|
It looks like you do not have Word (or the correct version of it) installed on your server. Bob
Ashfield Consultants Ltd
|
|
|
|
|
|
Hi,
I want to import excel data in sqlserver 2000 using asp.net 2.0
Please help me asap.
thanksFarogh Haider
Web developer
|
|
|
|
|
|
Thanks alot,
It's working fine.
can we use bulk insert.Farogh Haider
Web developer
|
|
|
|
|
Dont Forget to mark it answer if it helps..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
If it's just a table that you need to get in excel, go for a excel macro.
not more then 5 lines of code.
|
|
|
|
|
He is asking using asp.net not vb macros brother..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi all,
How can i add a TextBox on a form every time a row in a grid is added.The Gridview refreshes every two minutes for additional row and would like to have a text box next to the Row in a grid to leave a note about the data being added. So for each entry on a grid i would like to have a text box automatically created next to the new row on a gridview.So that i can leave some comments about the data being added on the grid.
Here is the Gridview :
<asp:GridView ID="gvResult" runat="server" AllowPaging="True" CellPadding="4"
Height="16px" Width="45px" AutoGenerateColumns="False"
DataSourceID="SqlDataSource1">
<EmptyDataTemplate>
<asp:Label runat="server">
NO Message List...
</asp:Label>
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="CR_CLI" HeaderText="CR_CLI"
SortExpression="CR_CLI" />
How Can I add a text Box that is Just Blank after each Row on a Grid
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:vp2ConnectionString %>"
SelectCommand="SELECT CR_CLI FROM Call WHERE (CR_CLI LIKE '7%') ORDER BY CR_CLI DESC">
</asp:SqlDataSource>
|
|
|
|
|
Many thanks for your help.Its Much appreciated.
I dont really need the Edit and Delete Row.What I need is to add a text box Netx to each entry record on a Grid.
Lets Say for instance a gridview has one column and has three rows od data showing on the form.
CR_Cli
777777 ---- I need a textbox 1
88888 ---- textbox 2
8888 ------ Textbox 3 etcc.....
after each entry on a Gridview i need a blank text box Next to it.
Can you please advice on this one?
|
|
|
|
|
What is the condition for adding a textbox, or you need it consecutive rows..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Thanks so Much for your help.The condition is every time a new record is being added to a gridview a corrsponding textbox should be created.
The page refreshes every few seconds to see data coming through.When the grid gets three record for instance we need to have a corresponding three textbox to leave a comment about each entry.
The textbox shouldnt be a databind control.
Thanks
-- Modified Thursday, February 18, 2010 7:44 AM
|
|
|
|
|
By Default Keep the gridview column as textbox and then in pageload change the textbox in template field to label and add the data..!
I didnt tried but i think it will hellp u.
<asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="False" DataKeyNames="EmployeeID"
DataSourceID="ObjectDataSource1">
<Columns>
<asp:BoundField DataField="LastName" HeaderText="LastName"
SortExpression="LastName" />
<asp:TemplateField HeaderText="Hai">
<ItemTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Thanks so Much.It works very well.Sorry to bother you how can i link First row in a grid to the first textbox so that the Note left on the grid corresponds to each row and textbox?
Many thanks
|
|
|
|
|
HI all,
I'm working with crystal report.i have generated report successfully by using dataset.In that i have few columns that populates True Or False value.
the thing is i want to set one image(say red colour) if the value is 'true' and another image(say green colour) if it is 'false'.. how can i do this, In using crystalreport in web appliction....
I know that there is some way to set the ' if- else' condition, But i don't know how to do it.
Please help me..Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
|
|
|
|