|
What if you print them to a PDF printer? Most book formats should be printable..
That's just an idea though, I have no idea what would be the best solution.
|
|
|
|
|
There's an article on iTextSharp[^].
You said that you're currently converting to PDF with the Google webservice, you'd just need to replace that part.
I are Troll
|
|
|
|
|
Google webservice is nothing but in which format we upload, it will display in that format.For example,if i upload word document it will open word document.But i want to convert to pdf.
To know what is google docs,Once you open your gmail account and if you get any attached document just open it once,that document will be opened in another window which is noting but google docs.Is conversion possible?
|
|
|
|
|
sunithaganugu wrote: Is conversion possible?
As suggested before you can either write a program to do the conversion for you, using iTextSharp or similar third party library, or use one of the many PDF printer drivers to create the PDF files.
It's time for a new signature.
|
|
|
|
|
Just a thought - how are you going to deal with the DRM on most ebook formats?
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
Yesterday i have few conversation, as per you suggestion i have an issue. As iam agree to your point iam killing the existing process is not the right way. Kindly give me suggestions and how to over come this issue.
MY ISSUE : When i open my browser which i created in windows application other browser's(IE,FIREFOX...etc) should not get open.
Thanx
krishna
|
|
|
|
|
You would still have to be able to reliably detect which applications are browsers and which aren't.
You are still aiming at the wrong target. It's not the browser, it's the site.
|
|
|
|
|
ok its a site....what is the solution ???
krishna
|
|
|
|
|
A proxy server, as Dave Kreskowiak said yesterday. I know of no other reliable solution.
I just wouldn't try; it's not a worthwhile goal.
|
|
|
|
|
Thanks for your suggestion.
krishna
|
|
|
|
|
Hi,
Using proxy settings i can disable internet connections only right ??. But my requirement is stop booting IE exe file or any other browser exe file. If i click IE shortcut to lunch IE it should popup a message like restricted browsers. Can you help me out from this....
krishna
|
|
|
|
|
krishnavaradharajan wrote: If i click IE shortcut to lunch IE it should popup a message like restricted browsers. Can you help me out from this.
How many times does this have to be said: "There is no way to know which programs are browsers and thus to prevent them from opening". Even if you have a service that recognises IE, FF, Chrome, Opera etc, the user can merely rename his browser or install one whose name you do not know.
It's time for a new signature.
|
|
|
|
|
krishnavaradharajan wrote: Using proxy settings i can disable internet connections only right ??.
You can filter out any sites you want, yes.
krishnavaradharajan wrote: But my requirement is stop booting IE exe file or any other browser exe file.
This is not a valid, or practical, goal at all. You're still enumerating browsers, which you cannot do reliably.
|
|
|
|
|
krishnavaradharajan wrote: my requirement is stop booting IE exe file
Why? Who requires it? What is the desired outcome?
|
|
|
|
|
I have a SUSE linux machine running on the remote end which acts as tcp server.In the past this machine used to accept data over the serial port server, ie a piece of hardware that accepts serial data and converts it into TCP packets. I am trying to write an TCP/IP application to replace the port server.I am able to establish a connection between the linux machine but for some reason as soon as I send a Socket.Connect(remoteip), I am seeing SYN from my machine, SYN/ACK from linux, SYN/ACK from my machine and then SYN,FIN from linux machine and then ACK from my machine. I know that usually for a network communication, its supposed to be a three way handshake only. I see 5 channels of communication though instead of the 3. As soon as I send a packet, the linux machine sends a reset command.
I have something that can simulate what needs to be send to the remote linux machine. I compare my packats from the simulator and the packets I send , and the data packets are exactly the same. On the protocol level, there were some differences. The simulator had timestamps, so I added that using SocketOptions(....multicastdelay,1). The simulator was using a window size of 5480, so I set that using SocketOptions(..) also.
However still the linux machine is sending a reset packet as soon as I send data to it. I know that the linux machine server can accept TCP/IP communication in synchronous mode. I know the details of the what the data payload needs to be from a document and its maching the simulator . Thats all I know and I cannot get more information on it. The machine accepts data from a serial port server and works beatifully.
I am using socket programming and what i do can be summed up by the following three commands. Arguments are missing below but are correct in actual code.
socket.Connect()
socket.Send()
socket.Shutdown()
socket.Closet()
Another thing I noticed is that in Wireshark, when the simulator sends a Connect and when my machine sends a Connect, the TCP/IP options are in different order. The simultors protocol options are NOP,SACK PERMITTED, TIMESTAMP, NOP,WINDOW SCALE while mine are in a different order. I dont know to change the order, and I cant find much information about SACK PERMITTED. seems to be a default. I am programming with Visual Studio 2008 and a windows 7 computer. Any help will be appreciated.
What am I doing wrong? Please help.
Thanks
Jobin Thomas
-- Modified Tuesday, July 27, 2010 11:34 AM
|
|
|
|
|
Are you sending your Data in Network Byte order? Don't know if that is the problem but always a good thing to check with network communications.
|
|
|
|
|
I think I am sending it in the right order because I am matching the simulator. The linux machine is running on an intel i386, so should that matter?.
Thanks
Jobin Thomas
|
|
|
|
|
It is very unlikely that the base protocol is causing your problems as these are tried and tested systems working all around the world every minute of every day. It is much more likely that the sequence of messages that you send to the server are incorrect, in the wrong order, or missing some vital piece of data. I notice in the above that you do a socket.Shutdown() immediately after your socket.Send() whereas I would expect some sort of input message to be received from the Linux server first. In general you would not close your socket until both ends have agreed that the conversation is complete.
It's time for a new signature.
|
|
|
|
|
Thanks for the help. The issue was the stupid linux machine wasnt listening to my I.P address. We had to add some script to make it listen to my I.P.
I should make a point not to doubt TCP/IP again.
Thanks for the help.
|
|
|
|
|
Hi every body,
I created C dll (Dynamic-link library) using .Net to use C function in C# application , I used DLL Export in the C project (when creating the dll) in order to export its function, then I used DLL Import In C# project to use the C function..
To make the C# project see the dll’s functions I just put it in the Debug folder of the C# project, and it works properly. Now after finishing making the C# application, you know that I have to make the setup of the application to install it in the client PC, and here is the problem! how to make the application see the dll in the client PC, When I installed the application in the client PC and tried to run it, it made an error showing that the application couldn’t see the dll functions at all!!
You know that in his PC there will not be a debug folder, on the other hand C dll can’t be added to the C# project as a reference!!
Also C dll can’t be registered in the operating system with the instruction:
regsvr32
I tried the following:
- Put the dll file in the installation folder of the client PC (it didn’t work)
- Put the dll file in the system32 folder of windows (it didn’t work)
- Put the dll in the setup ad a content file to be set in the installation folder (it didn’t work)
So anybody can help me please ! How to make the program see the dll to use its functions in the Client PC?
|
|
|
|
|
Hi,
native code DLLs need not and can not be registered; they are located using the Windows PATH mechanism, so any folder that is mentioned in the system environment variable "PATH" should be good. The folder holding your EXE itself should also be good.
Note1: on a 32-bit Windows system I expect C:\Windows\system32 to be in PATH
Note2: if your native DLL needs other DLLs, those too need to be accessible through PATH; if they aren't the error message will not be very specific! Example: if you are using say one of the C run-time DLLs, and your target system doesn't have Visual, it may be missing those DLL files. You could use DEPENDS.EXE to figure it out.
|
|
|
|
|
Thank you Mr. Luc Pattyn for being helpful,
I tried the software you recommended (DEPENS.EXE) to know what is the dlls needed by my dll, then I copied all of them (they were about 5) and put them in system32 folder, but unfortunately the error happened !!
What do you think?
|
|
|
|
|
what is the exact error message you are getting?
is it a C or a C++ native DLL?
did you have "extern C" in your source, preventing "C++ name mangling"?
is this a 32-bit Windows system? if it is a 64-bit Windows, did you build for x86 ot x64?
what is your PATH?
which DLL files did you have to copy?
|
|
|
|
|
* The error message says:
System.DllNotFoundException: Unable to load DLL "Firas.dll": This application has failed to start because the application configuration is incorrect. Reinstall the application may fix this problem.(Exception from HRESULT: 0x800736B1)
at Template.CardInstruction.Open_USB()
and Open_USB() is one of the function in the dll file.
When creating the dll I used C++ project and make the project give dll as output, in the Code I use (extern “C”) then before each function I put the following:
_declspec(dllexport)
* What I want to inform you about is when running the project from the .Net (as a project) the application could see the dll (located in the debug folder) and use its functions without any problem, but when I setup the application in the Client PC the error occurred.
* The Client system is 32-bit Windows.
* The dll given by the software you had recommended is:
DCIC32.dll (which is the hardware library given by the manufacturer because my application is using Card reader and this is its library containing the function to read/write on the card)
MFC90UD.Dll (Idon’t know this one)
MSVCR90D.Dll (Idon’t know this one)
KERNAL32.Dll
OLEAUT32.Dll
USER32.Dll
ADVAPI32.Dll
Again thank you very much for being helpful !
|
|
|
|
|
Hi,
I don't know the exact answer to your problem, but I do have two remarks:
1.
having to add/replace some of the files you mentioned is pretty strange; e.g. USER32.DLL should always be present on all kinds of Windows, it is an essential part of it. If you replaced it, your system may be unstable; if it was absent, I can't believe it.
2.
When an error message is entered verbatim into the Google search box (but excluding specific names), one normally gets good suggestions as to how to solve the problem. So try entering "This application has failed to start because the application configuration is incorrect" and look at them; not all will apply, but I have good hope something good will come out. In this case the general idea is: your target system is lacking some "VC++ redist" package, containing a lot of run-time library stuff that needs to be installed, not just copied. And an alternative may be to statically link your native coce.
|
|
|
|