|
|
Hi, I am looking for a way to insert a part or a whole file(tried with an excel sheet and a word doc to not much success) into a win word doc through microsoft word interop using VC#. I stumbled across the the range.insertfile() method but resources and information seem quite scarce however I googled it. I Has anyone been regularly using this and having success? Just curious.
|
|
|
|
|
Hello, I need some help.
Currently, I have a gridview that will update with the timer and also a button when clicked, will update the gridview.
So now, I am currently facing a problem regarding when scrolling the updatepanel/gridview, I would like it to remain at scrollbar position. But when I click on the button, I will like the updatepanel/gridview to return to bottom (already have the javascript).
Thanks in advance!
<div id="scrollChat" style="overflow: auto; width: 80%; height: 250px; margin-left: auto;
margin-right: auto;">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Timer ID="timer" runat="server" OnTick="timer_Tick" Interval="2000">
</asp:Timer>
<asp:UpdatePanel ID="upChat" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="timer" EventName="Tick" />
</Triggers>
<ContentTemplate>
<asp:GridView ID="gvChat" runat="server" Style="width: 100%;" Font-Names="Verdana"
AutoGenerateColumns="True" ShowHeader="False" GridLines="None">
<RowStyle Height="25" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
<div id="chat" style="height: 1px;">
</div>
</div>
<div style="width: 100%; height: 100px; text-align: center; margin-bottom: 30px;">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox ID="tbMsg" Rows="3" Height="60px" Width="80%" TextMode="multiline" runat="server"
Style="margin-bottom: 15px;" Font-Names="Verdana" placeholder="Type your message here..."></asp:TextBox>
<br />
<asp:Button ID="btnSend" class="btn btn-primary btn-lg" runat="server" Text="Send"
OnClick="btnSend_Click" Width="200px" Font-Bold="true" Font-Names="Verdana" OnClientClick="btnSend_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
<br />
<br />
<script type="text/javascript">
Sys.Application.add_load(function () {
var t = document.getElementById('scrollChat');
t.scrollTop = t.scrollHeight;
});
</script>
|
|
|
|
|
Don't post the same thing in multiple places - it duplicates work and that annoys people.
Either post it in the forums, or QA - but not both.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
hi every one i make program it insert textBox in Word Document Using spire.dll
and it worked but when i use code for gradient fill effect to textbox it not worked so any one can help me by see my code and program and if can edit i will be thankful for him
my small project here and fill effect not work
http://www.4shared.com/rar/jkZqHHdqce/WindowsFormsApplication5.html[^]
|
|
|
|
|
|
Hello Guys,
Am facing an issue with namespace regarding WindowsInstaller
My code is to Read a MSI file and to write, other operations etc.
OS: Windows 7, 64 BIT
VS: VS2013
(I have WiX Toolset v3.8 installed on my machine, which will assist in windows installer funstions)
My Code starts like this:
using System;
using System.Linq;
using WindowsInstaller;
using Microsoft.Deployment.WindowsInstaller;
using Microsoft.Deployment.WindowsInstaller.Linq;
namespace ReadMSI
{
Error: "the type or namespace name 'deployment' does not exist in the namespace 'microsoft'"
I have related .dll installed to the below location.
"C:\Program Files (x86)\WiX Toolset v3.8\bin\Microsoft.Deployment.WindowsInstaller.dll"
Not sure what am missing.
Is this any issue with installing WiX Toolset v3.8
Please assist.
|
|
|
|
|
You have to add a reference in your project to the DLL. Right-click the project, and choose "Add Reference". Then select the DLL.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
i am making a program to resize image according to measurement is given in textbox. and that should display in picturebox.
but my picturebox is changing dimension which is good, but my image is not fitting in that picturebox.
i tried image size mode function but it didnt work
|
|
|
|
|
megha_p wrote: i tried image size mode function but it didnt work It is unlikely that anyone can guess from that exactly what your code does, or what is meant by "it didnt work". Please edit your question, explain exactly what you are trying to do, show the code that tries to do it, and give full details of what results you expect and what you actually see.
[edit]
I notice that this is the third time you have posted on this subject. Please try and follow the advice you have been given, and explain your problem clearly.
[/edit]
|
|
|
|
|
program of image processing using c#
|
|
|
|
|
It doesn't quite work like that.
We do not do your work for you.
If you want someone to write your code, you have to pay - I suggest you go to VWorker.com and ask there.
But be aware: you get what you pay for. Pay peanuts, get monkeys.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
|
In addition to what the others have said, remember that a question needs a ? mark.
And you need to be specific, as no one can tell what you are looking for exactly, so what would be a good answer to this?
|
|
|
|
|
Yes, this is possible.
|
|
|
|
|
|
I gave it a try for a password-manager I was writing; add a character every time that the user presses a key, to prevent it from becoming a string. Dropped it at that point, and followed below advice.
The Old New Thing[^]
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
this is my best bet for securing the connection string.
fetch the encrypted connection string from app.config then store it in the securestring. so at-least the connectionstring is protected.
|
|
|
|
|
If they could read a normal string object straight from memory, then why can't they read from app.config?
|
|
|
|
|
Simply because the app.config is also encrypted.
|
|
|
|
|
So the key also available, otherwise you couldn't read it.
Worst case, if somehow that key is only available to your program, the attacker becomes your program by injecting some code into your process.
|
|
|
|
|
Yeah actually that problem is in my head for a long time.
for now i don't know what would happen if they copy the config file, then create there own project to read the app.config and show the real string. maybe that is possible, but i don't time to test it for now.
BTW what would you suggest to protect the connection string, while the client doesn't have an internet connection.
any advice?
thank you.
|
|
|
|
|
You can't hide anything from the user. A user can debug your program, or run it through an emulator, or disassemble it and step through it mentally. "Anti-debugging" tricks don't change that - you can choose different code paths but the user can override it, you can have sneaky behaviour depending on self modifying code and so on, but the user can see right through it, no matter what you do the user can override it. The user is essentially a god and your code runs completely at their mercy. You can slow them down or trick them, but at the end of the day you can not stop them. If your program can get its hand on the connection string, so can the user, because the program tells them exactly how to do it - it's literally a list of instructions saying how, which also explains why encryption is in this case just obfuscation: you're also providing the instructions to undo it.
"secure"string doesn't pretend to stop users, it pretends to stop other programs, but there's not much difference. The only thing a program can't do (in theory anyway) is click a UAC dialog, and you don't even need that.
Advice: accept that anything that could be done with the privileges and information of the program, will be done by a user. If they're not allowed to do something, then the program can't be allowed to do it either, and that must be enforced server-side.
|
|
|
|
|
harold aptroot wrote:
If they could read a normal string object
straight from memory, then why can't they read from app.config?
If the string has to be entered, and you have privliges to run whatever you want (unsigned code with admin rights), why not install a keylogger? You're assuming that the system is already compromised.
If the user has to enter something sensitive, I prefer to keep it as much out of reach as possible.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
in your case would you suggest?
As there is no perfect security in cyber world
|
|
|
|