|
How to convert pdf to html in proper format?
|
|
|
|
|
Don't cross post your question!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|
|
Hi
I have developed one ASP.NET web application. In one form i have provided link to mht file which is converted from PPT and also excel hyperlink object has been provided in that mht. I hosted in server. Including me and every user able to open that mht file but not opening excel hyperlink for all users. I am able to open in my local system by accessing that URL but if i am login to other system as my NT id, even i am also not able to open that excel link.
what might be the problem. I have provided that folder access to every with read permission. Then also not opening.
If anybody knows please reply me.
Thanks in advance.
modified 10-Jan-14 5:25am.
|
|
|
|
|
Where are the excel files hosted? It could be that the excel files are hosted in your local box and the links direct you to http://localhost. In this case, the files will open only when clicked from the local box.
Check the links and fix them. You may need to move the excel files to a server and update the links with the server's address.
modified 10-Jan-14 9:57am.
|
|
|
|
|
How to convert PPT to mht format in Office 2010 / 2013 to use in Asp.net web application.
If anybody knows, please reply me.
Thanks in advance.
|
|
|
|
|
Try this [^]
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
I tried with Office 2010 & 2013 it gives following error
Run time error '-2147188160 (80048240)':
Presentation (unknown member): Invalid request. Saving as an HTML presentation is not supported in this version of Powerpoint.
It works in Office 2007 - there directly i can save as MHT or HTML format.
But my system installed office 2013 here it is giving error. I want try with 2010 or 2013.
Please suggest.
|
|
|
|
|
You can drive the save to MHT using automation. Basically, even though MHT isn't exposed via the save function in 2010 (not 2013 sadly) you can still get to it via VBA so you're going to have to do something like this:
Public Sub ConvertToMHT(ByVal FileLocation As String)
ActivePresentation.SaveAs FileLocation, ppSaveAsWebArchive
End Sub
|
|
|
|
|
Hello. I am a little confused.
I have this code:
Dim dv As New DataView(_DataSet.Tables(0))
dv.RowStateFilter = DataViewRowState.Deleted
For _irow As Long = 0 To dv.Table.Rows.Count - 1
If Not IsDBNull(dv!serial) Then
txtSerial.Text = (dv!serial).ToString
Dim strconnection As String = "Data Source=EASMAR-PC;Initial Catalog=Database Connection;Integrated Security=True;"
Dim _cn As SqlConnection = New SqlConnection(strconnection)
_cn.Open()
Dim cmd As New SqlCommand
cmd.CommandText = "Delete from tblCustomer where serial= " & (dv!serial).ToString
End If
Next
I am getting this error:
Conversion from string ?serial? to type
on this line:
If Not IsDBNull(dv!serial) Then
serial is an autoincremented integer in my database. So why am i getting this string error conversion?
Is there a logic reason for this?
I tried to replace the previous line by this one:
If Not IsDBNull(dv.Item("Serial")) Then
Still the same error
|
|
|
|
|
You're using the old VB6 syntax. What you're doing is wrong on at least a few levels. Not the least of which is that indexers (you For statement) are never Longs, but instead should be Integers. On top of that, you never use the indexer (_irow)!
It should read more like this:
For index As Integer = 0 To dv.Count - 1
DataRowView rowView = dv(index)
If Not IsDBNull(rowView("serial")) Then
' This next line is meaningless because you'll never see the textbox
' update on a per-row basis. You'll only see the changes made by the
' last iteration of the enclosing For/Next loop.
' Also, why are you even bothering to try to convert DbNull to a String??
txtSerial.Text = ...
' You should be moving this database Delete to it's own method.
' You should also be converting it to a parameterized query instead of
' using string concatenation to build the query.
' You also never execute to command, so nothing really happens here.
' The database connection string and connection open statements really
' should not be inside the For/Next loop.
End If
Next
|
|
|
|
|
plz send me any one examples of use of calendar , date api in asp.net
email- alakhn4@gmail.com
|
|
|
|
|
|
1. You haven't described your question/problem well
2. You've chosen the wrong forum, there is a separate forum for ASP.NET
3. Asking for code will only get your post and your profile reported and possibly removed
4. No one is going to write code for you or take the pain to find the code and email it to you
5. The only thing that you can expect to receive from this post is quite a good amount of spam.
|
|
|
|
|
Hi. I am coding a program (important: .NET 2 (3.5), C#) where i get input of GUIDs in various formats. On MSDN is documented, that it is possible to use
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
or zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz
or {zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz}
or (zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz)
or {0xzzzzzzzz, 0xzzzz, 0xzzzz,0xzz,0xzz,0xzz,0xzz,0xzz,0xzz,0xzz,0xzz}} The goal is to produce a (hex)string of length 32 characters (for 16 bytes) regardless of input.
So I programmed and debugged and tested and looked ...
System.Guid test=new System.Guid("{2426186D-B96D-4656-9B65-15C727744643}");
System.Console.WriteLine(BitConverter.ToString(test.ToByteArray()).Replace("-", string.Empty));
What goes wrong? I expect to see "2426186DB96D46569B6515C727744643", but get
"6D1826246DB956469B6515C727744643". Please give advice. TIA Nicki.
|
|
|
|
|
Make sure the result from "ToByteArray()" is what you expect it to be.
Put that operation on a separate line, and place a breakpoint so you can examine the resulting byte array.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
?test.ToString();
"2426186d-b96d-4656-9b65-15c727744643"
byte[] bytes=test.ToByteArray();
{byte[16]}
[0]: 109
[1]: 24
[2]: 38
[3]: 36
[4]: 109
[5]: 185
[6]: 86
[7]: 70
[8]: 155
[9]: 101
[10]: 21
[11]: 199
[12]: 39
[13]: 116
[14]: 70
[15]: 67 ... and the byte order is messed
|
|
|
|
|
So can you use test.ToString()?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Yes,
?test.ToString().Replace("-",string.Empty);
"2426186db96d46569b6515c727744643"
will fit my needs. So this will be the permanent workaround as solution. But the (IMHO) missbehavior with .ToByteArray() will remain. THX anyway, Nicki.
|
|
|
|
|
It' not misbehaving. It's doing exactly what it should be doing. ToByteArray is not setup to return an array of bytes to YOUR liking. It's setup to return an array of bytes that can be used to quickly build another Guid object.
Internally, the GUID value is not stored as an array of bytes, but as individual fields of various types, combining to form a single GUID. These types include Int32, Short and Byte.
What you think is misbehavior is the correct representation of a 32-bit integer and of a Short and of individual bytes.
|
|
|
|
|
|
Why don't you use "test.ToString()"?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Quick Test in Immediate Window:
Guid test=new Guid("{2426186D-B96D-4656-9B65-15C727744643}");
{2426186d-b96d-4656-9b65-15c727744643}
_a: 606476397
_b: -18067
_c: 18006
_d: 155
_e: 101
_f: 21
_g: 199
_h: 39
_i: 116
_j: 70
_k: 67
?test.ToString();
"2426186d-b96d-4656-9b65-15c727744643"
|
|
|
|
|
I want to create a table "Employee" with columns:empname,age and empcode(which takes two letters from employee name and append number to it.,e.g.:-ga1,om2 where ga stands for ganesh,om stands for omkar)
please help me with the following
|
|
|
|
|
It's already in the C# forum; please don't cross-post.
FWIW, sounds like a calculated field to me.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Where are you stuck?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|