Printing problem

Sep 28, 2009 at 5:39 AM
Edited Sep 28, 2009 at 7:45 AM

in cmdPrintOrder_click

Response.Write(  "<script>window.open('" & NavigateURL(TabId, "PrintOrder", "mid=" & ModuleId.ToString, "ORID=" & _OrdId.ToString & "&SkinSrc=" & QueryStringEncode("[G]" & Skins.SkinInfo.RootSkin & "/" & glbHostSkinFolder & "/" & "No Skin"), "ContainerSrc=" & QueryStringEncode("[G]" & Skins.SkinInfo.RootContainer & "/" & glbHostSkinFolder & "/" & "No Container"), "dnnprintmode=true") & "','_blank')</script>")

is not functioning right. The main windows url is sitll referencing to order printed. This main windows content url is not always encoded right

How is it possible to change Navigation url like below . This is functioning right with Search . Navigation url with parameter "?PrintOrder=" & _OrdId.ToString & ...

Response.Redirect(NavigateURL(ResultsTabid & "?Search=" & Server.UrlEncode(strSearch(0)))

Regards.

Markku


Note:


Response.Redirect(NavigateURL(TabId, "PrintOrder", "mid=" & ModuleId.ToString, "ORID=" & _OrdId.ToString & "&SkinSrc=" & QueryStringEncode("[G]" & Skins.SkinInfo.RootSkin & "/" & glbHostSkinFolder & "/" & "No Skin"), "ContainerSrc=" & QueryStringEncode("[G]" & Skins.SkinInfo.RootContainer & "/" & glbHostSkinFolder & "/" & "No Container"), "dnnprintmode=true"))

is functiong right

There is something with scripting the printing widows. to redirect to the same window is functiong well.

 Also how is this script coded  creating the main window. This script position maybe changed to anothe or something like that.
or it's  structure Somehow it is disturding the main window's layout.

tested with  Skin MinimalExtrophy in DNN 5.1.2

 
Coordinator
Sep 28, 2009 at 6:45 AM

Hi Marku,

I've just tested this using DNN4.9 and everything seems OK.

What version on DNN are you using?

Also the printable orer should open in a new windows, is this something to do with popup blocker on your browser?

Regards,

Dave.