473,396 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

writting to a pdf file which is open

hi friends,
I need to overwrite a pdf file. if that file is open i need to close it and then overwrite and open it again.
Can u pls tell me how this can be done in c#?
Can it be done with the help of Process?

Thanks in advance
Jul 14 '08 #1
1 888
Plater
7,872 Expert 4TB
You would have to find out what process has it open, and get that process to release the locks on the file.
No idea how to do that. You would need to use Win32_API for that I think
Jul 15 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: artixan | last post by:
I have a database result set in a Python list. Each row is a tuple. data = I need to loop thru this data and write each row to a text file. f = open('out.txt','w') for row in data:...
1
by: a_rybicki | last post by:
"Hi - I'm experiencing something strange when I call a FileOpenDialog from a dialog box in my application (Borland C++ 6). Basically, here's the scenario: - Open my own child dialog from the...
2
by: Robizzle | last post by:
I'm working on a very simple script that logs the ip address, time of hit, and os/browser information and currently it works every time. The problem is getting the script included into my html...
1
by: Feng | last post by:
I have an ASP.Net app that is wrtting some log information into a log file. All I have is one single log file used by the web application and shared cross all the sessions. What I don't understand...
1
by: itsjyotika | last post by:
Hello Everyone, I need to read data from a CVS file(i created it from micosoft excel) and then need to match it with the one of the date from the command line.If the date is there then it should say...
5
by: Vijay | last post by:
Hi All, I have written below code to read and write a file (Big file). But every time, one extra character(may be NULL char) has been written in output file. Can any one please tell me why it...
0
by: marinhof | last post by:
hi i need some guidance.. this is the situation im working on web app using Visual studio 2003 working with C# and asp.net the database is managed by sql studio managmnet 2005.. the thing is i...
9
by: Abhay | last post by:
How can i write a excel file through c program.?
5
by: wolfjmt | last post by:
Hi, I am trying to write to data to a .xlsx file. I can currently write the data to a .xls file. I tried to change the extension of the xls file (to xlsx) but Excel gave the following error:Excel...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.