|
|
I am using Visual Studio .NET 2003 to develop the application. My issue is that i had to generate a Word Report with password from an ASP.NET web application.
After much try i got the dll Microsoft Word 11.0 Object Library and with the help of which i could generate a word document with password from a trial application. When i tried to implement the same in our project, it was giving an error as
'Could not open Macro Storage'.
The error code was 2146822307.
While checked up with the windows task manager it was taking a lot of memory.
When performed a search with this, i came to know the necessity of configuring the Word application with DCOMCNFG - as setting the word to be run under interactive user mode etc. But that is very risky as listed in the links,
http://support.microsoft.com/kb/q288366/ -- (Explains how to configure with DCOMCNFG)
http://support.microsoft.com/kb/257757/
Can any body tell me how to solve this without using DCOMCNFG ?
Or at the least is there any solutions to overcome the security issues...
Your suggestions might be of great value....
If anybody comes across any link or any thing please do reply ....
I will be very grateful...
O
|
|
|
|
|
i have a problem in crystal report viewer.
it show the records in vertical way in runtime although the main reprt preview shows it horizontal in design mode.
it is very urgent please help me.
Ahmed Abo Hamer
|
|
|
|
|
could you send some snapshots of both previews
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
I feel like a moron but I am looking for my autos window when debugging in asp.net and I can't find it. I am using VS2005.
Previously in vs2003 the autos debugging window was always there with no problems.
-- modified at 12:15 Wednesday 14th March, 2007
Thanks
sandeep akhare
|
|
|
|
|
Ok
1) You can get Autos Window in Debug Mode Press F5 or Debug -> Start Debuging.
2) Now debugging is running now press Ctrl + D,A or
go to Debug Menu -> Windows -> Autos
You will get your Autos Windows
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
i want to convert a word document that is uploaded into a folder into pdf format without using converter. i want to convert it programatically . i am using c# 1.1
any suggestions will be welcomed.
madhu
|
|
|
|
|
wrote: want to convert a word document that is uploaded into a folder into pdf format without using converter. i want to convert it programatically
Why don't u use some third party converter libraries ? If not one option is crystal reports. I am not sure about directly converting to pdf from word file using crystal reports. You can try to read the word file and write that to XML file. Add this XML file as datasource and export the report
|
|
|
|
|
No not possible PDF file are very Compact it not easy converting Txt file to PDF
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
i have a folder with few files in it. I want to get only 3 files which has latest lastaccesstime . can anyone help me out .
|
|
|
|
|
<br />
public class dateTimecompare : IComparer<br />
{<br />
<br />
public int Compare(object x, object y)<br />
{<br />
DateTime datex = (DateTime)x;<br />
DateTime datey = (DateTime)y;<br />
<br />
if (datex == datey)<br />
return 0;<br />
else if (datex < datey)<br />
return -1;<br />
else<br />
return +1;<br />
}<br />
}<br />
<br />
private void Form1_Load(object sender, EventArgs e)<br />
{<br />
SortedList sl = new SortedList(new dateTimecompare());<br />
<br />
System.IO.DirectoryInfo objDI = new System.IO.DirectoryInfo(@"\\YourPath");<br />
<br />
<br />
foreach (System.IO.FileInfo fi in objDI.GetFiles())<br />
{<br />
sl.Add(fi.LastAccessTime, fi.FullName);<br />
<br />
}<br />
<br />
string[] fileList = new string[3];<br />
int FileNo = 0;<br />
<br />
foreach (DictionaryEntry de in sl)<br />
{<br />
if (FileNo == 3)<br />
break;<br />
fileList[FileNo] = de.Value.ToString();<br />
FileNo += 1;<br />
}<br />
|
|
|
|
|
how to connect a string array fileList in the gridview .i am doing it as
GridView1.DataSource = fileList;
GridView1.AutoGenerateColumns = false;
GridView1.DataBind();
on aspx page
<asp:GridView ID="GridView1" AutoGenerateColumns="true" runat="server" ShowHeader="False" GridLines="None" OnRowCommand="GridView1_OnRowCommand" >
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="Hyperlinkpolicy" runat="server" Text='<%#Eval("fileList") %>' CommandArgument='<%#Eval("fileList") %>' CommandName="button" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
pls help me out .
thanks in advance
-- modified at 2:24 Thursday 15th March, 2007
|
|
|
|
|
Add the items to dataTable and bind the table to the grid.
|
|
|
|
|
It may happen that while running application your files have been changed
You can go with System.IO.FileSystemWatcher class
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
You can Delete this post
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
hi evrybody,
I have to give blind-up and blind-down effects
to asp.net control like panel or to div on mouse over event of panel or div.
but unable to achieve it.I have downloaded effects.js file ,
Should I also use Scriptaculous.js .
Please giuide.
Thank you.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
what does it means by blind-up and down ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
|
|
hi all,
i want to redirect the user to a page that indicates that the session has expired.
i added code to the session_end event in the Global.asax class, but it did not work
plz send me the response asap
thanks
abdelhameed81
|
|
|
|
|
You need to use a javascript timer to redirect the user. The Session End Event does not fire on a postback so the browser is not redirected. The Session End Event usually occurs when a "session" hasn't posted back in 20 minutes or however long.
|
|
|
|
|
Another way is
create a thread that will check Session is there or not
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Thats great, and how would you propose to redirect the user from this thread?
|
|
|
|
|
Hi,
My issue is related to getting data in gridview when I selected a row. Because Always the value comes "".
Firstly I bind the dataset to gridview in code-behind. I didn't use sqldatasource. and in html code about gridview is below(between asp gridview tag):
ID="grd_getdata" runat="server"
OnSelectedIndexChanged="grd_getdata_SelectedIndexChanged"
AutoGenerateColumns="False" DataKeyNames="No">
<columns>
<asp:boundfield datafield="No" headertext="No" readonly="True">
and selectedindexchangedevent code is;
protected void grd_getdata_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow row = grd_getdata.SelectedRow;
Session["aksesuar"] = row.Cells[0].Text;
}
So the value of row.Cells[0].Text always comes empty. On the other hand I see the value on gridview. Why couldn't I get the value? Where is the wrong?
I hope you know the answer!!! Keep Battling.
|
|
|
|
|
What I like to do to avoid issues with the cell numbers is to use mostly template columns. If you want to reference values in a gridview row, use a template column and the row's findControl method.
<br />
Label lbl = row.findControl(LabelID);<br />
Session["aksesuar"] = lbl.Text;<br />
|
|
|
|