|
You seem to be creating a HTML table, pretending it's a PDF file, and then hoping the browser can handle all the minor complications of converting it to a real PDF file?
|
|
|
|
|
please give me the solution.
Raaj
|
|
|
|
|
Try this [^], it should give you all the information you need.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
You cannot convert HTML to PDF by simply saying that it's a PDF file. I'd suggest taking some time to investigate exactly what HTML and PDF are, why they are different, and how you would use a server-based solution to convert from one to the other. As someone else has suggested, Google will undoubtedly be your friend here.
|
|
|
|
|
Hi Guys,
I am about to start working on timezone application now, but I don't know yet if which is best of the two.
I need your comment and suggestion. What I really need is an application that will accept a datetime and then will be converted into the desired timezone.
What do you think is good for this particular task - http://www.codeproject.com/KB/vb/TimeZoneInfo.aspx or PublicDomain Olson TimeZone ?
Thanks
hifiger2004
|
|
|
|
|
After Vista sucked down and injected SP1 onto my machine all of my previously working web apps are hemorrhaging with the following error:
Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x8007000d
Config Error
Config File
Requested URL http://localhost:80/
Physical Path
Logon Method Not yet determined
Logon User Not yet determined
Something has changed in SP1 that doesn't agree with my configuration but I have no clue what it is.
I did everything on the Microsoft KB with no luck http://support.microsoft.com/kb/942055/[^]
EDIT: You can use %windir%\system32\inetsrv\appcmd.exe list config to check if your config file is corrupt (no errors here)
EDIT: This[^] forum post mentions a resolution. One of the applications in applicationHost.config had applicationPool="" which is invalid. Specificying an applicationPool fixed the issue. Phew.
Todd Smith
modified on Wednesday, September 24, 2008 4:27 PM
|
|
|
|
|
Hi all,
I am writing a simple webpage that uses an iframe to contain information from multiple content-pages. The iframe is located inside a div with the following specs (in css):
#Plaza2
{
position: absolute;
left: 30px;
right: 25px;
top: 130px;
bottom: 25px;
overflow: auto;
text-align: left;
margin: 0;
padding: 0;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
color: #000000;
}
The iframe itself is said to be 100% of the width and height of its parent:
#iframe
{
position:relative;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
The actual html is:
<div id="Plaza2">
<iframe src="txt/0101.htm" name="content" id="iframe" frameborder="0" scrolling="auto">
Sorry, your browser does not support iframes.
</iframe>
</div>
All this works as expected in Firefox, however in IE7 the height of the iframe gets stuck at some 150 pixels or something. The funny thing is that the width does extend to 100% of the div. Only the height does not.
I have also set the height of the body (both the main page as well as the page included in the iframe) to 100%. Does not make any difference.I could of course set the iframe to a fixed height, but this way everything neatly sizes with the browser window.
Does anyone have any suggestions please???
Regards,
William.
|
|
|
|
|
William Engberts wrote: Does anyone have any suggestions please???
You're already making the container DIV absolute positioned, use the same for the IFRAME. Maybe even ditch the DIV completely, since it does not appear to have a purpose.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
Hi All,
I'm using Plumtree 5.0 to host my pages and im creating a PDF with some sentences and trying to show it to the user on click of a button. But i'm getting an Javascript error "Object doesn't support this property or method". The code is as follows.
MemoryStream ms = new MemoryStream();
//...
ms object will be populated with the pdf data created dynamically.
.....//
Response.ContentType = "application/pdf"; //when i try "text/html" im getting the encoded pdf file in the page like %pdf- ....
Response.Buffer = true;
Response.Clear();
Response.OutputStream.Write(ms.GetBuffer(), 0, ms.GetBuffer().Length);
Response.OutputStream.Flush();
Response.End();
Im using vs2003 C#
Please help me in this issue. This is an urgent requirement.
|
|
|
|
|
kc_krishnan wrote: Please help me in this issue. This is an urgent requirement.
It always is.
The error is basically telling you everything - you are accessing a function or variable of an object that does not exist. Locate the line in the code and you've nearly solved the problem. If you can't locate the line then try using FireFox and FireBug and see what they say.
|
|
|
|
|
Actually i'm not calling any javascript functions. I tried to keep the first line of the code response.contentype="application/pdf" only, then also its throwing error. So basically i think Plumtree is not supporting this line and the inbulit javascripts is blocking.Can any one explain the exact reason for this.
|
|
|
|
|
i would like to use tooltips for javascript validation as used in this link-
http://www.shine.com[^]
can u plz help me
thanks...
|
|
|
|
|
So... you are linking to an Indian job website with no apparent 'tooltips for javascript validation'.
|
|
|
|
|
do u hav the answer faltu k answers nhi chahiye
Maniiiiiiiiiiiiiii
|
|
|
|
|
mnkh wrote: do u hav the answer faltu k answers nhi chahiye
I HAVE ALL THE ANSWERS
|
|
|
|
|
I have to use HTM form instead of ASP script, there is an input
<br />
<% If VerifyPending = true Then %><br />
<input type="text" name="from_date" value="<%= FormatDate(Date, 4) %>"><br />
<% Else %><br />
<input type="text" name="from_date" value="<%= FormatDate(Date+1, 4) %>"> <br />
<% End If %><br />
</input></input>
In my HTM it does not accept <% to insert VB script
1. Do I need include some thing to make the HTM accept the above VB script?
2. If not how can I convert into HTM form?
Note: VerifyPending is VB script only use to return TRUE or FALSE, FormatDate is a VB script to return a new Date
Thank to any help
|
|
|
|
|
Hello,
I am writing an ActiveX control. This control will connect to the remote server then do further processes.
In order to the flexibility, I want to use JavaScript to get the address bar value.
And use this address and pass it into the ActiveX control item in order to connect to the remote server.
Now I know location.hostname can get the hostname of the URL. But if I passed it into the ActiveX, it failed.
I set the breakpoint in the function which is called by JavaScript and checked the argument. But the argument value is bad ptr...
I don't know how to fix it. Do I set the wrong type of argument ? Or JavaScript can't do this feature...(I am a newbie of JavaScript)
Can anybody can help me ?
My Environment : Vista SP1 + VS2005 SP1 + IE7
The JavaScript code is
function OnLogin()
{
var hostname = location.hostname;
document.ActiveXClient1.OnLogin(hostname);
}
The corresponding ActiveX code is
BEGIN_DISPATCH_MAP(CActiveXClientCtrl, COleControl)
DISP_FUNCTION_ID(CActiveXClientCtrl, "OnLogin", DISPID_CV_LOGIN, OnLogin, VT_EMPTY, VTS_BSTR)
END_DISPATCH_MAP()
void CActiveXClientCtrl::OnLogin(LPCSTR ip)
{
}
Thanks.
|
|
|
|
|
Problem is solved.
It works when the argument use location.hostname directly.
Don't need to assign value to other variable first.
The JavaScript code which can run on my pc is
function OnLogin()
{
document.ActiveXClient1.OnLogin(location.hostname);
}
|
|
|
|
|
Im tring to write some characters(eg <, %,) to a webforms's textbox but they dont appear on the textbox, the code below tries to illustrate what im saying:
string mytext = "<test>"; // "Test" works
textbox1.text = mytext;
This happens even if i use javascript
does anyone know what im doing wrong here.
modified on Tuesday, September 23, 2008 9:01 AM
|
|
|
|
|
omlac wrote: does anyone know what im doing wrong here.
Kinda hard to say, since you didn't bother to actually post the code that's broken. My guess is, you're failing to HTML escape your text.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
Hie
Thank you for your response, Im sorry about that, but the following java function is not pasting the value ,m, when i have the "<" signs but if i remove them it works fine.
function LoadField()
{
var editor = $find("<%=radBody.ClientID%>");
var lst = document.getElementById("cboMergeField");
var i = lst.selectedIndex; // for the selectedIndex
var n = lst.options[i].text;
var m = "<" + n + ">";
editor.pasteHtml(m);
}
Thank you
|
|
|
|
|
I would like to use a event fired on a usercontrol on the page it is nested in
Like for instance say the usercontrol has a button on it, when the button gets clicked the event fired should be able to change a textbox nested in the page and not in the user control itself ?
Any examples or pointing in the reight direction will be greatly appricated
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Ok here is the solution on the ascx file the code should look like
public event EventHandler ButtClick;
protected void Button1_Click(object sender, EventArgs e)
{
ButtClick(sender, e);
}
This will register a onButtCLick Event that can be wired up in the host page
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
Hello Freinds,
I need help regarding a SQL Query We are designing a job site, and there is a job search. In this searchThere is a textbox for entering the keywords or any string for the search. After the Search button click I should give results of the string in a data grid.But I had doubt in SQL Query. Here I am using Full text engine in SQL 2005. And the queries are FREETEXTTABLE and COTAINSTABLE.The rank differs for both.Example:Enter Keywords:I Want jobin .net,vb compnay is Microsoft
FREETEXTABLE QUERY: Select * From jobposting as posting Innerjoin Freetextable (jobposting,*,'"*I*" | "*want*" | "*job*" | "*in*" | "*.net*" | "*vb*" | "*company*" | "*is*" | "*microsoft*" ') as frees ON trees. [Key]=posting. [ID] order by Rank Desc
CONTAINSTABLE QUERY:
Select * From jobposting as posting Innerjoin Containstable (jobposting,*,'"*I*" | "*want*" | "*job*" | "*in*" | "*.net*" | "*vb*" | "*company*" | "*is*" | "*microsoft*" ') as frees ON trees. [Key]=posting. [ID] order by Rank Desc Suggest me the appropriate query for my search,
Thanking You,Phani.
|
|
|
|
|
This is the wrong forum for this question
|
|
|
|