Hi All, I am working on a project that uses interop.word COM object. But I am not able to get width and style of page border of document. Can I know how I'll get these values? Thanks in advance, Priyank
priyank_ldce
Posts
-
Word page border. -
Web user control parameter.Hi all, I have made one web user control. Now I know how to pass string parameters in it but I am not able to pass server control as user control parameter. It is like we can pass data source to gridview. Thanks in advance, Priyank
-
Mail reminders and alerts.Hi all, I am making one web application using ASP.NET and VB.NET 2.0. I want to make alerts and reminders for this application. User can set reminder for some specific date and they get mail as a reminder on that. Plus one day every week system check for users if they fill one form or not. If not then they will get mail to alert it. Can I know how I can do this? I am using SQL Server 2000 as a database. Thanks in advance, Priyank
-
GridView ProblemHi all, I am using GridView in one ASP.NET, VB.NET application. I want to select data using select command of SqlDataSource but I don't want to do other operations like deleting and updating using SqlDataSource. So I am using RowDeleting() and RowUpdating() event handler of GridView. But When I click on Delete link in GridView it goes to event handler, do delete operation using my custom query and then it gives me error like "Deleting is not supported by data source (SqlDataSource1) unless DeleteCommand is specified". Any way to get rid out of this DeleteCommand? Thanks in advance, Priyank
-
viewstate of dropdownN a v a n e e t h wrote:
Are you using a content place holder ?
Yes I am using content place holder.
N a v a n e e t h wrote:
Viewstates will be loaded before page_load fires. Getting viewstate depends on where you are creating dynamic control. If it is in page_load or any other events fired after Init(), it won't be maintained. If ASP.NET want to maintain viewstate for your dynamic control, create it on Init() event.
I am creating dropdownlist on Page_load event. I want to use value of this dropdownlist for other control in Page_load event.
-
viewstate of dropdownThanks, But how can I get it? only thing I have is ID of the dropdownlist at that time. Priyank
-
viewstate of dropdownHi all, I am creating dynamic dropdownlist in my webpage. Now on postback is it possible to get viewstate of this dynamically created dropdownlist in Page_Load methode? Thanks, Priyank
-
Unicode character incrementHi all, As with ascii character we can increment alphabet by increment ascii value of it (Like ch='H' and ch = ch + 1 gives me ch='I'). IS it pobbiel to do the same for Unicode character? I wan to increment Unicode character in VB.NET. Thanks in advance Priyank
-
Dynamic controlsHi all, I have to make one web page where user can add dropdownlist dynamically. As many time user clicks on one button it add one dropdownlist control to webpage. Is it possible to do this using ASP.NET without java script? Thanks in advance, Priyank
-
WebpartsHi all, Our intranet is made in ASP. Now I want to add some new features in intranet. Can I add webparts made in ASP.NET 2005 into out ASP website? If yes how Can I do that? Thanks in advance, Priyank
-
Point to InchThanks
-
Point to InchHi all, How can I convert point to inch or centimetre in C#? Thanks, Priyank
-
Passing parameters to Thread function.Hi, I am making one application in VC++.NET. I want to pass one integer parameter to one thread function. How can I pass parameter to thread functions? My code is as below.
Thread function
public class TestThread
{
public:
static void ThreadProc()
{
...
}
};Thread function call
Thread* myThread = new Thread(new ThreadStart(&TestThread::ThreadProc));
myThread->Start();I want to pass one integer parameter in
ThreadProc()
. Thanks in Advance Priyank Raval -
Network DeploymentHi all, I have made one application in VC++. I want to make installer of that application so that I can deploy it on all client machines from server machine. Can I know any tool to make Installer or any method to make setup like this? Thank in advance, Priyank
-
Flash movie in Dialog BoxHi all, I am making one win32 application that includes some Flash movies. I want to embed flash movie into my Dialog Box. I am able to add it in Windows Form using
AxShockwaveFlashObjects
but it is not working for Win32 dialog box. How ca I add Flash into Dialog box? Thanks in advance, Priyank -
new to win32Hi all, I am making one pure win32 windows application by selecting “Win32 Project” template in Visual C++ project type 2005 version. This is my first win32 application but I can’t understand how can I add more controls and use it in the main form created by CreateWindow() function. Or can I get some help or place where I can get tutorial about win32 applications. Thanks in advance, Priyank
-
ImageDirectoryEntryToDataEx() not workingHi All, I am trying to make tool like PE viewer in VC++.NET 2005. After enumerating process module I am using
ImageDirectoryEntryToData()
function to get Import section. It is working fine but this function has been superseded byImageDirectoryEntryToDataEx()
function. I am able to get import section usingImageDirectoryEntryToData()
but not usingImageDirectoryEntryToDataEx()
. It gives me NULL every time. Here is my code for getting Import Section of the process.DWORD aProcesses[1024], cbNeeded;
unsigned int i;
HMODULE hMods[1024];
char modName[255];
PIMAGE_IMPORT_DESCRIPTOR pImportDesc;
PIMAGE_SECTION_HEADER pImageHeader;
PSTR pszModName;
ULONG ulSize;if(EnumProcessModules(::GetCurrentProcess(), hMods, sizeof(hMods), &cbNeeded))
{
for ( i = 0; i < (cbNeeded / sizeof(HMODULE)); i++ )
{
::GetModuleFileNameA(hMods[i], modName, 255);ImageDirectoryEntryToDataEx(hMods[i], TRUE,
IMAGE_DIRECTORY_ENTRY_IMPORT, &ulSize, &pImageHeader);if(pImageHeader)
{
while (pImageHeader->Name)
{
pszModName = (PSTR) pImageHeader->Name;
pImageHeader++;
} // while
}/*if(pImportDesc = (PIMAGE_IMPORT_DESCRIPTOR) ImageDirectoryEntryToData(hMods[i], TRUE, IMAGE_DIRECTORY_ENTRY_IMPORT, &ulSize))
{
while (pImportDesc->Name)
{
pszModName = (PSTR)((PBYTE) hMods[i] + pImportDesc->Name);
pImportDesc++;
} // while
}*/
}
}Can I know what is the problem with ImageDirectoryEntryToDataEx() function? Thanks, Priyank
-
Runtime error for OpenFileDialog Class in .NET 2005Hi all, I am transferring from .NET 2003 to .NET 2005 now. I have one application made in Visual C++.NET 2003. It is compiling fine in .NET 2005 but it gives one run time error at
ShowDialog()
function ofOpenFileDialog
Class object. Error is“An unhandled exception of type 'System.Threading.ThreadStateException' occurred in System.Windows.Forms.dll
Additional information: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process.”
Can I know what is wrong with this? And how can I solve this problem. Thanks in advance, Priyank
-
Runtime error for OpenFileDialog Class in .NET 2005Hi all, I am transferring to .NET 2003 to .NET 2005 now. I have one application made in Visual C++.NET 2003. It is compiling fine in .NET 2005 but it gives one run time error at
ShowDialog()
function ofOpenFileDialog
Class object. Error is“An unhandled exception of type 'System.Threading.ThreadStateException' occurred in System.Windows.Forms.dll
Additional information: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process.”
Can I know what is wrong with this? And how can I solve this problem. Thanks in advance, Priyank
-
array of bytesThanks, It works for
BYTE myByteArray[]={{0x09}, {0x31}, {0x21}};
but I want to use the same variable for many time. How can I enter new values after sometime?